Class IterableAdaptor<T>
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.utils.IterableAdaptor<T>
-
-
Constructor Summary
Constructors Constructor Description IterableAdaptor(Enumeration<T> en)sometimes you have an Enumeration and you want an IterableIterableAdaptor(Iterator<T> it)sometimes you have an Iterator but you want to use a for
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Iterable<T>adapt(Enumeration<T> enin)static <T> Iterable<T>adapt(Iterator<T> itin)Iterator<T>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
IterableAdaptor
public IterableAdaptor(Enumeration<T> en)
sometimes you have an Enumeration and you want an Iterable
-
-