|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.darwinsys.util.IteratorEnumerationBridge<T>
public class IteratorEnumerationBridge<T>
Make instances of newer Iterator look like older Enumeration, for some kind of backwards compatibility.
Constructor Summary | |
---|---|
IteratorEnumerationBridge(java.util.Iterator<T> it)
|
Method Summary | |
---|---|
boolean |
hasMoreElements()
Tell whether this Enumeration has more elements |
T |
nextElement()
Get the next element from this Enumeration; can only be called if hasMoreElements() is true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IteratorEnumerationBridge(java.util.Iterator<T> it)
Method Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
Enumeration.hasMoreElements()
public T nextElement()
nextElement
in interface java.util.Enumeration
Enumeration.nextElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |