|
OCPsoft Common API 1.0.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.common.util.Iterators
public final class Iterators
Utility methods for working with Iterator and Iterable instances.
| Constructor Summary | |
|---|---|
Iterators()
|
|
| Method Summary | ||
|---|---|---|
static
|
asList(Iterable<T> iterable)
Return the elements of the given Iterable as a List. |
|
static
|
asList(Iterator<T> iterator)
Return the elements of the given Iterator as a List. |
|
static
|
asSet(Iterable<T> iterable)
Return the elements of the given Iterable as a List. |
|
static
|
asSet(Iterator<T> iterator)
Return the elements of the given Iterator as a List. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Iterators()
| Method Detail |
|---|
public static <T> List<T> asList(Iterable<T> iterable)
Iterable as a List.
public static <T> List<T> asList(Iterator<T> iterator)
Iterator as a List.
public static <T> Set<T> asSet(Iterable<T> iterable)
Iterable as a List.
public static <T> Set<T> asSet(Iterator<T> iterator)
Iterator as a List.
|
OCPsoft Common API 1.0.5.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||