|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsrc.ListeDeMots
src.ListeVide
public class ListeVide
Les listes vides. avec patron singleton
| Field Summary | |
|---|---|
static ListeVide |
SINGLETON
Pour le singleton liste vide. |
| Constructor Summary | |
|---|---|
ListeVide()
Le constructeur des listes vides. |
|
| Method Summary | |
|---|---|
ListeDeMots |
append(ListeDeMots l)
concatenation purement fonctionnelle. |
boolean |
isEmpty()
Teste si la liste est vide ou non. |
java.lang.String |
ith(int n)
Si 1<=n<=length() retourne le nieme mot. |
int |
length()
|
ListeNonVideDeMots |
putLast(java.lang.String m)
ajout a la fin purement fonctionnelle. |
ListeDeMots |
reverse()
inversion purement fonctionnelle. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ListeVide SINGLETON
| Constructor Detail |
|---|
public ListeVide()
| Method Detail |
|---|
public boolean isEmpty()
ListeDeMots
isEmpty in class ListeDeMotspublic java.lang.String ith(int n)
ListeDeMots
ith in class ListeDeMotsn - indice du mot
public int length()
length in class ListeDeMotspublic java.lang.String toString()
toString in class ListeDeMotspublic ListeDeMots append(ListeDeMots l)
ListeDeMots
append in class ListeDeMotsl - une liste
public ListeNonVideDeMots putLast(java.lang.String m)
ListeDeMots
putLast in class ListeDeMotsm - le mot
public ListeDeMots reverse()
ListeDeMots
reverse in class ListeDeMots
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||