|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpatron.List
patron.NotEmpty
public class NotEmpty
la classe des listes non vides.
| Field Summary | |
|---|---|
int |
head
le champ tete. |
List |
tail
le champ reste. |
| Constructor Summary | |
|---|---|
NotEmpty(int e,
List l)
le constructeur indispensable. |
|
| Method Summary | |
|---|---|
List |
append(List l)
concatenation purement fonctionnelle. |
boolean |
isEmpty()
teste la liste vide. |
int |
length()
la longueur. |
NotEmpty |
putLast(int e)
ajout a la fin purement fonctionnelle. |
List |
reverse()
inversion purement fonctionnelle. |
java.lang.String |
toString()
redefinition. |
| Methods inherited from class patron.List |
|---|
cons |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int head
public List tail
| Constructor Detail |
|---|
public NotEmpty(int e,
List l)
e - la tete de listel - le reste de la liste| Method Detail |
|---|
public final boolean isEmpty()
isEmpty in class Listpublic final int length()
length in class Listpublic final List append(List l)
append in class Listl - autre liste
public final NotEmpty putLast(int e)
putLast in class Liste - a ajouter
public final List reverse()
reverse in class Listpublic final java.lang.String toString()
toString in class List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||