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.
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 Details

    • EnumeratedIterator

      public EnumeratedIterator(Iterator<T> i)
      Deprecated.
      Creates an EnumeratedIterator from the given Iterator.
      Parameters:
      i - the Iterator on which this will iterate
  • Method Details