Class IterableUtil
- java.lang.Object
-
- org.uberfire.ext.wires.core.trees.client.layout.treelayout.util.IterableUtil
-
-
Constructor Summary
Constructors Constructor Description IterableUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Iterable<T>createReverseIterable(List<T> list)Returns anIterablewith an iterator iterating the given list from the end to the start.
-
-
-
Method Detail
-
createReverseIterable
public static <T> Iterable<T> createReverseIterable(List<T> list)
Returns anIterablewith an iterator iterating the given list from the end to the start.I.e. the iterator does the reverse of the
List.iterator().- Type Parameters:
T-- Parameters:
list-- Returns:
- a reverse
Iterableof the list
-
-