org.abego.treelayout.internal.util.java.util
Class IteratorUtil
java.lang.Object
org.abego.treelayout.internal.util.java.util.IteratorUtil
public class IteratorUtil
- extends Object
Util (general purpose) methods dealing with Iterator
.
- Author:
- Udo Borkowski (ub@abego.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorUtil
public IteratorUtil()
createReverseIterator
public static <T> Iterator<T> createReverseIterator(List<T> list)
- Returns 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
Iterator
of the list
Copyright © 2011 abego Software GmbH, Germany. All Rights Reserved.