@Mutable @GenerateSubclass public abstract class FreezableIterator<E> extends Object implements Iterator<E>
| Constructor and Description |
|---|
FreezableIterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
void |
remove() |
static <E> @Nonnull FreezableIterator<E> |
with(@Nonnull Iterator<E> iterator,
@Nonnull FreezableCollection<E> collection)
Returns a new freezable iterator backed by the given iterator and freezable collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining@Pure @Nonnull public static <E> @Nonnull FreezableIterator<E> with(@Captured @Nonnull @Nonnull Iterator<E> iterator, @Shared @Nonnull @Nonnull FreezableCollection<E> collection)
@Impure public E next() throws NoSuchElementException
next in interface Iterator<E>NoSuchElementException@Impure
public void remove()
throws IllegalStateException
remove in interface Iterator<E>IllegalStateExceptionCopyright © 2017. All rights reserved.