Class EnumeratedIterator<T>

java.lang.Object
VASSAL.tools.EnumeratedIterator<T>
All Implemented Interfaces:
Enumeration<T>

@Deprecated(since="2021-12-01", forRemoval=true) public class EnumeratedIterator<T> extends Object implements Enumeration<T>
Deprecated, for removal: This API element is subject to removal in a future version.
use Iterator, Iterable, Collection or Stream API instead.
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 Link icon

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates an EnumeratedIterator from the given Iterator.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Enumeration Link icon

    asIterator
  • Constructor Details Link icon

    • EnumeratedIterator Link icon

      public EnumeratedIterator(Iterator<T> i)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an EnumeratedIterator from the given Iterator.
      Parameters:
      i - the Iterator on which this will iterate
  • Method Details Link icon

    • hasMoreElements Link icon

      public boolean hasMoreElements()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hasMoreElements in interface Enumeration<T>
    • nextElement Link icon

      public T nextElement()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      nextElement in interface Enumeration<T>