|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jane.util.ExtendedEnumeration
An extended enumeration base class with predicate and reset support.
Field Summary | |
protected org.apache.commons.collections.Predicate |
predicate
|
Constructor Summary | |
ExtendedEnumeration()
Create a new ExtendedEnumeration . |
|
ExtendedEnumeration(org.apache.commons.collections.Predicate aPredicate)
Create a new ExtendedEnumeration . |
Method Summary | |
protected abstract boolean |
doCheckSize()
Returns true if there are not more elements in the
current series. |
protected boolean |
doEvaluate()
Evaluate the current element. |
protected abstract void |
doNext()
Go to the next element. |
protected abstract java.lang.Object |
getCurrent()
Returns the current element. |
boolean |
hasMoreElements()
Returns true if there are more elements. |
java.lang.Object |
nextElement()
Returns the next element. |
abstract void |
reset()
Reset this enumeration to the beginning. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.commons.collections.Predicate predicate
Constructor Detail |
public ExtendedEnumeration()
ExtendedEnumeration
.public ExtendedEnumeration(org.apache.commons.collections.Predicate aPredicate)
ExtendedEnumeration
.Method Detail |
public boolean hasMoreElements()
true
if there are more elements.hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
public abstract void reset()
protected abstract boolean doCheckSize()
true
if there are not more elements in the
current series.protected abstract java.lang.Object getCurrent()
protected abstract void doNext()
protected boolean doEvaluate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |