@Mutable public class ReadOnlyListIterator<ELEMENT> extends ReadOnlyIterableIterator<ELEMENT> implements ListIterator<ELEMENT>
| Modifier and Type | Field and Description |
|---|---|
protected @Nonnull ListIterator<? extends ELEMENT> |
listIterator |
iterator| Modifier | Constructor and Description |
|---|---|
protected |
ReadOnlyListIterator(@Nonnull ListIterator<? extends ELEMENT> iterator) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ELEMENT e) |
boolean |
hasPrevious() |
int |
nextIndex() |
ELEMENT |
previous() |
int |
previousIndex() |
void |
set(ELEMENT e) |
static <ELEMENT> @Nonnull ReadOnlyListIterator<ELEMENT> |
with(@Nonnull ListIterator<? extends ELEMENT> iterator)
Returns a read-only list iterator that captures the given list iterator.
|
hasNext, next, withremoveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasNext, next, removeforEachRemaining@Nonnull protected final @Nonnull ListIterator<? extends ELEMENT> listIterator
protected ReadOnlyListIterator(@Captured @Nonnull @Nonnull ListIterator<? extends ELEMENT> iterator)
@Pure @Capturable @Nonnull public static <ELEMENT> @Nonnull ReadOnlyListIterator<ELEMENT> with(@Captured @Nonnull @Nonnull ListIterator<? extends ELEMENT> iterator)
@Pure public boolean hasPrevious()
hasPrevious in interface ListIterator<ELEMENT>@Impure public ELEMENT previous()
previous in interface ListIterator<ELEMENT>@Pure public int nextIndex()
nextIndex in interface ListIterator<ELEMENT>@Pure public int previousIndex()
previousIndex in interface ListIterator<ELEMENT>@Pure
public final void set(@NonCaptured @Unmodified
ELEMENT e)
set in interface ListIterator<ELEMENT>@Pure
public final void add(@NonCaptured @Unmodified
ELEMENT e)
add in interface ListIterator<ELEMENT>Copyright © 2017. All rights reserved.