jodd-core/src/main/java/jodd/util/CollectionUtil.java
public static <E> Enumeration<E> asEnumeration(final Iterator<E> iter) {
		return new Enumeration<E>() {
			@Override
			public boolean hasMoreElements() {
				return iter.hasNext();
			}

			@Override
			public E nextElement() {
				return iter.next();
			}
		};
	}
public static <E> Enumeration<E> asEnumeration(final Iterator<E> iter) {
		return new Enumeration<E>() {
			@Override
			public boolean hasMoreElements() {
				return iter.hasNext();
			}

			@Override
			public E nextElement() {
				return iter.next();
			}
		};
	}
public static < E > Enumeration < E > asEnumeration ( final Iterator < E > iter ) { return new Enumeration < E > ( ) { @ Override public boolean hasMoreElements ( ) { return iter . hasNext ( ) ; } @ Override public E nextElement ( ) { return iter . next ( ) ; } } ; }
Adapt the specified <code>Iterator</code> to the
<code>Enumeration</code> interface.
Adapt the specified <code > Iterator< / code > to the <code > Enumeration< / code > interface .