de.lmu.ifi.dbs.elki.utilities.iterator
Class IterableUtil
java.lang.Object
  
de.lmu.ifi.dbs.elki.utilities.iterator.IterableUtil
public final class IterableUtil
- extends Object
 
Utility function to wrap an Iterator as iterable.
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
IterableUtil
public IterableUtil()
fromIterator
public static <C> IterableIterator<C> fromIterator(Iterator<C> iter)
- Wrap an iterator as Iterable.
- Type Parameters:
 C - Type restriction- Parameters:
 iter - Iterator
- Returns:
 - Iterable wrapper
 
 
 
fromIterable
public static <C> IterableIterator<C> fromIterable(Iterable<C> iter)
- Wrap an Iterable as IterableIterator
- Type Parameters:
 C - Type restriction- Parameters:
 iter - Iterator
- Returns:
 - Iterable wrapper