Constructor | Description |
---|---|
IteratorUtil() |
Modifier and Type | Method | Description |
---|---|---|
static <T> Iterator<T> |
createReverseIterator(List<T> list) |
Returns an
Iterator iterating the given list from the end to the
start. |
public static <T> Iterator<T> createReverseIterator(List<T> list)
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
- Iterator
of the listCopyright © 2019. All rights reserved.