|
LimeWire Collection Component API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.limewire.collection.CollectionUtils
public class CollectionUtils
| Method Summary | ||
|---|---|---|
static
|
flatten(Collection<? extends Collection<? extends T>> values)
Flattens the collections into a single collection. |
|
static
|
listOf(Iterable<T> iterable)
|
|
static
|
listOf(Iterator<T> iterator)
|
|
static
|
readOnlyIterator(Iterator<T> iterator)
|
|
static
|
toList(Collection<T> c)
Converts the given Collection to a List (if it isn't already a List) |
|
static
|
toSet(Collection<T> c)
Converts the given Collection to a Set (if it isn't already a Set) |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> List<T> listOf(Iterator<T> iterator)
public static <T> List<T> listOf(Iterable<T> iterable)
public static <T> Set<T> toSet(Collection<T> c)
public static <T> List<T> toList(Collection<T> c)
public static <T> Iterator<T> readOnlyIterator(Iterator<T> iterator)
public static <T> Collection<T> flatten(Collection<? extends Collection<? extends T>> values)
|
LimeWire Collection Component API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||