|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpatron.List
public abstract class List
la classe racine du patron.
Constructor Summary | |
---|---|
List()
|
Method Summary | |
---|---|
abstract List |
append(List l)
concatenation de deux listes. |
NotEmpty |
cons(int e)
ajoute en tete d'une liste. |
abstract boolean |
isEmpty()
teste si la liste est vide ou pas. |
abstract int |
length()
la longueur. |
abstract NotEmpty |
putLast(int e)
ajout a la fin purement fonctionnelle. |
abstract List |
reverse()
inversion purement fonctionnelle. |
abstract java.lang.String |
toString()
Conversion. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public List()
Method Detail |
---|
public abstract boolean isEmpty()
public abstract int length()
public abstract List append(List l)
l
- autre liste
public abstract java.lang.String toString()
toString
in class java.lang.Object
public NotEmpty cons(int e)
e
- a ajouter
public abstract NotEmpty putLast(int e)
e
- a ajouter
public abstract List reverse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |