Package VASSAL.tools
Class EnumeratedIterator<T>
java.lang.Object
VASSAL.tools.EnumeratedIterator<T>
- All Implemented Interfaces:
Enumeration<T>
Deprecated.
An adapter for converting
Iterators into Enumerations.
Consider altering the code requiring the Enumeration instead
of using this class. Enumerations generally should not be
used in new code.- Since:
- 3.1.0 see IterableEnumeration
- Author:
- Joel Uckelman
-
Constructor Summary
ConstructorsConstructorDescriptionEnumeratedIterator(Iterator<T> i)Deprecated.Creates anEnumeratedIteratorfrom the givenIterator. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
EnumeratedIterator
Deprecated.Creates anEnumeratedIteratorfrom the givenIterator.- Parameters:
i- theIteratoron which this will iterate
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()Deprecated.- Specified by:
hasMoreElementsin interfaceEnumeration<T>
-
nextElement
Deprecated.- Specified by:
nextElementin interfaceEnumeration<T>
-
Iterator,Iterable,Collectionor Stream API instead.