net.sf.okapi.common.annotation

## Class IterableEnumeration<T>

- java.lang.Object
- - net.sf.okapi.common.annotation.IterableEnumeration<T>

- Type Parameters:
    `T` -
  All Implemented Interfaces:
    java.lang.Iterable<T>

      public class IterableEnumeration<T>
      extends java.lang.Object
      implements java.lang.Iterable<T>

  Wrap an Enumeration and make it compatible with new Iterators. Useful for dealing with old style API's.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IterableEnumeration(java.util.Enumeration<T> en)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Iterator<T>` | `iterator()`
    `static <T> java.lang.Iterable<T>` | `make(java.util.Enumeration<T> en)`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### IterableEnumeration

          public IterableEnumeration(java.util.Enumeration<T> en)

  - ### Method Detail

    - #### iterator

          public java.util.Iterator<T> iterator()

      Specified by:
        `iterator` in interface `java.lang.Iterable<T>`

    - #### make

          public static <T> java.lang.Iterable<T> make(java.util.Enumeration<T> en)