public class IterableUtil
extends java.lang.Object
Iterable.| Modifier and Type | Class and Description |
|---|---|
private static class |
IterableUtil.ReverseIterable<T> |
| Constructor and Description |
|---|
IterableUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> java.lang.Iterable<T> |
createReverseIterable(java.util.List<T> list)
Returns an
Iterable with an iterator iterating the given list
from the end to the start. |
public static <T> java.lang.Iterable<T> createReverseIterable(java.util.List<T> list)
Iterable with an iterator iterating the given list
from the end to the start.
I.e. the iterator does the reverse of the List.iterator().
T - Type of elements in the listlist - Iterable of the list