Package com.atlassian.bamboo.utils
Class MemorisingIterable.MemorisingIterator<T>
java.lang.Object
com.atlassian.bamboo.utils.MemorisingIterable.MemorisingIterator<T>
- Type Parameters:
T
- type of elements returned by this iterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- MemorisingIterable<T>
Iterator which memorises all traversed elements.
-
Constructor Summary
ConstructorDescriptionMemorisingIterator
(@NotNull Iterator<T> iterator) Creates new instance ofMemorisingIterable.MemorisingIterator
backed by the giveniterator
. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all elements already traversed by callingIterator.next()
on this object.boolean
hasNext()
next()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
MemorisingIterator
Creates new instance ofMemorisingIterable.MemorisingIterator
backed by the giveniterator
.
-
-
Method Details