public final class IterableUtil extends Object
Constructor and Description |
---|
IterableUtil() |
Modifier and Type | Method and Description |
---|---|
static <C> IterableIterator<C> |
fromIterable(Iterable<C> iter)
Wrap an Iterable as IterableIterator
|
static <C> IterableIterator<C> |
fromIterator(Iterator<C> iter)
Wrap an iterator as Iterable.
|
public static <C> IterableIterator<C> fromIterator(Iterator<C> iter)
C
- Type restrictioniter
- Iteratorpublic static <C> IterableIterator<C> fromIterable(Iterable<C> iter)
C
- Type restrictioniter
- Iterator