code: public static <E> Iterator<E> toIterator(Enumeration<E> enumeration) {
          return new EnumerationIterator<E>(enumeration);
      }
docs: Adapt an enumeration to an iterator.
  @param enumeration the enumeration
  @return the iterator