T
- type of elements returned by this iteratorpublic static class MemorisingIterable.MemorisingIterator<T> extends Object implements Iterator<T>
Constructor and Description |
---|
MemorisingIterator(@NotNull Iterator<T> iterator)
Creates new instance of
MemorisingIterable.MemorisingIterator backed by the given iterator . |
Modifier and Type | Method and Description |
---|---|
@NotNull List<T> |
getTraversedElements()
Returns a list of all elements already traversed by calling
Iterator.next() on this object. |
boolean |
hasNext() |
T |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
public MemorisingIterator(@NotNull @NotNull Iterator<T> iterator)
MemorisingIterable.MemorisingIterator
backed by the given iterator
.@NotNull public @NotNull List<T> getTraversedElements()
Iterator.next()
on this object.Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.