@ Nonnull public static < ELEMENTTYPE > Enumeration < ELEMENTTYPE > getEnumeration ( @ Nullable final Iterator < ELEMENTTYPE > aIter ) { if ( aIter == null ) return new EmptyEnumeration <> ( ) ; return new EnumerationFromIterator <> ( aIter ) ; }
Get an Enumeration object based on an Iterator object .