Class IterableAdapter<T>

  • All Implemented Interfaces:
    Iterable<T>

    public final class IterableAdapter<T>
    extends Object
    implements Iterable<T>
    Adapter class which wraps an Iterable over an Enumeration, to support foreach-style iteration over the Enumeration.
    • Constructor Detail

      • IterableAdapter

        public IterableAdapter​(Enumeration<T> en)
        Constructor
        Parameters:
        en - the Enumeration over which to iterate