Class CollectionsPlume.IteratorEnumeration<T>

java.lang.Object
org.plumelib.util.CollectionsPlume.IteratorEnumeration<T>
Type Parameters:
T - the type of elements of the enumeration and iterator
All Implemented Interfaces:
Enumeration<T>
Enclosing class:
CollectionsPlume

public static final class CollectionsPlume.IteratorEnumeration<T> extends Object implements Enumeration<T>
Converts an Iterator into an Enumeration.
  • Constructor Details

    • IteratorEnumeration

      public IteratorEnumeration(Iterator<T> itor)
      Create an Enumeration that contains the elements returned by the given Iterator.
      Parameters:
      itor - the Iterator to make an Enumeration from
  • Method Details