Class IteratorEnumeration<T>

java.lang.Object
de.intarsys.tools.collection.IteratorEnumeration<T>
All Implemented Interfaces:
Enumeration<T>

public class IteratorEnumeration<T> extends Object implements Enumeration<T>
Wraps an iterator into an enumeration API.
  • Constructor Details

    • IteratorEnumeration

      public IteratorEnumeration(Iterator<T> i)
      IteratorEnumeration constructor.
      Parameters:
      i - The Iterator to be enumerated
  • Method Details