|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.poem.util.ConsEnumeration<T>
public class ConsEnumeration<T>
An implementation of the Lisp cons function on
enumerations ie it allows you to add an object to the front
of an Enumeration.
| Constructor Summary | |
|---|---|
ConsEnumeration(T head,
Enumeration<T> tail)
Constructor with head and tail. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
|
T |
nextElement()
|
void |
skip()
Skip an Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsEnumeration(T head,
Enumeration<T> tail)
head - tail - | Method Detail |
|---|
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<T>Enumeration.hasMoreElements()public T nextElement()
nextElement in interface Enumeration<T>Enumeration.nextElement()public void skip()
skip in interface SkipEnumeration<T>SkipEnumeration.skip()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||