|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.common.iterator.IteratorUtils
public final class IteratorUtils
Iterator
-related methods without a better home.
Method Summary | ||
---|---|---|
static
|
iterableToList(java.lang.Iterable<K> iterable)
|
|
static
|
iterableToList(java.lang.Iterable<K> iterable,
java.util.Comparator<K> comparator)
|
|
static long[] |
longIteratorToList(LongPrimitiveIterator iterator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <K> java.util.List<K> iterableToList(java.lang.Iterable<K> iterable)
iterable
- Iterable
whose contents are to be put into a List
List
with the objects one gets by iterating over the given Iterable
public static long[] longIteratorToList(LongPrimitiveIterator iterator)
public static <K> java.util.List<K> iterableToList(java.lang.Iterable<K> iterable, java.util.Comparator<K> comparator)
iterable
- Iterable
whose contents are to be put into a List
comparator
- Comparator
defining the sort order of the returned List
List
with the objects one gets by iterating over the given Iterable
, sorted
according to the given Comparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |