Class IteratorUtil
java.lang.Object
org.abego.treelayout.internal.util.java.util.IteratorUtil
Util (general purpose) methods dealing with
Iterator
.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Iterator
<T> createReverseIterator
(List<T> list) Returns anIterator
iterating the given list from the end to the start.
-
Constructor Details
-
IteratorUtil
public IteratorUtil()
-
-
Method Details
-
createReverseIterator
Returns anIterator
iterating the given list from the end to the start.I.e. the iterator does the reverse of the
List.iterator()
.- Type Parameters:
T
- Type of elements in the list- Parameters:
list
-- Returns:
- a reverse
Iterator
of the list
-