|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.unkrig.commons.util.collections.IterableUtil
public final class IterableUtil
Various Iterable-related utility methods.
| Method Summary | ||
|---|---|---|
static
|
repeat(T subject,
int n)
|
|
static
|
reverseList(java.util.List<E> list)
|
|
static
|
unmodifiableIterable(java.lang.Iterable<T> i)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> java.lang.Iterable<T> unmodifiableIterable(java.lang.Iterable<T> i)
Iterable which can't be modified through the Iterator.remove() method
public static <T> java.lang.Iterable<T> repeat(T subject,
int n)
Iterable producing the given subject n timespublic static <E> java.lang.Iterable<E> reverseList(java.util.List<E> list)
Iterable that traverses the elements of the given List in reverse order.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||