Package VASSAL.tools
Class EnumeratedIterator<T>
java.lang.Object
VASSAL.tools.EnumeratedIterator<T>
- All Implemented Interfaces:
Enumeration<T>
@Deprecated public class EnumeratedIterator<T> extends Object implements Enumeration<T>
Deprecated.
An adapter for converting
Iterator
s into Enumeration
s.
Consider altering the code requiring the Enumeration
instead
of using this class. Enumeration
s generally should not be
used in new code.- Since:
- 3.1.0
- Author:
- Joel Uckelman
- See Also:
IterableEnumeration
-
Constructor Summary
Constructors Constructor Description EnumeratedIterator(Iterator<T> i)
Deprecated.Creates anEnumeratedIterator
from the givenIterator
. -
Method Summary
Modifier and Type Method Description boolean
hasMoreElements()
Deprecated.T
nextElement()
Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
EnumeratedIterator
Deprecated.Creates anEnumeratedIterator
from the givenIterator
.- Parameters:
i
- theIterator
on which this will iterate
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()Deprecated.- Specified by:
hasMoreElements
in interfaceEnumeration<T>
-
nextElement
Deprecated.- Specified by:
nextElement
in interfaceEnumeration<T>
-
Iterator
,Iterable
,Collection
or Stream API instead.