|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.poem.util.FilteredEnumeration<T>
public abstract class FilteredEnumeration<T>
An Enumeration
created by filtering another
according to an abstract inclusion function.
Implementations must provide isIncluded(Object)
.
Constructor Summary | |
---|---|
FilteredEnumeration(Enumeration<T> base)
Constructor. |
Method Summary | |
---|---|
boolean |
hasMoreElements()
|
protected abstract boolean |
isIncluded(Object o)
|
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 FilteredEnumeration(Enumeration<T> base)
base
- the Enumeration we are based uponMethod Detail |
---|
protected abstract boolean isIncluded(Object o)
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 |