|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.HandleEnumerator
public class HandleEnumerator
Constructor Summary | |
---|---|
HandleEnumerator(java.util.Collection c)
|
Method Summary | |
---|---|
static HandleEnumeration |
getEmptyEnumeration()
|
boolean |
hasNextHandle()
Returns true if the enumeration contains more elements; false if its empty. |
Handle |
nextHandle()
Returns the next element of the enumeration. |
void |
reset()
Reset the enumeration so it can be reused again. |
java.util.List |
toList()
Returns a list with all elements currently available in the enumeration. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandleEnumerator(java.util.Collection c)
Method Detail |
---|
public boolean hasNextHandle()
hasNextHandle
in interface HandleEnumeration
public Handle nextHandle()
nextHandle
in interface HandleEnumeration
java.util.NoSuchElementException
- If no more elements exist.public java.util.List toList()
toList
in interface HandleEnumeration
public void reset()
reset
in interface HandleEnumeration
public static HandleEnumeration getEmptyEnumeration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |