|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.util.EnumerationPredicate
Step through the elements of some other enumeration, but skip over any elements that do not satisfy the given predicate.
Field Summary | |
protected java.util.Enumeration |
_enum
The normal enumeration that this EnumerationPredicate is moving through. |
protected Predicate |
_filter
The predicate that must be satisfied in order for a given element to be returned by nextElement(). |
protected java.lang.Object |
_nextElement
The element that will be returned on the next call to nextElement(). |
Constructor Summary | |
EnumerationPredicate(java.util.Enumeration e,
Predicate p)
|
Method Summary | |
protected void |
findNext()
Internal method to find the next element that satisfies the predicate and store it in _nextElement. |
boolean |
hasMoreElements()
Reply true iff there are more elements in the given enumeration that satisfy the given predicate. |
java.lang.Object |
nextElement()
Reply the next element in the given enumeration that satisfies the given predicate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Enumeration _enum
protected Predicate _filter
protected java.lang.Object _nextElement
Constructor Detail |
public EnumerationPredicate(java.util.Enumeration e, Predicate p)
Method Detail |
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
protected void findNext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |