ELEMENTTYPE - The type of the element to be iterated.@Immutable public class SingleElementListIterator<ELEMENTTYPE> extends Object implements ListIterator<ELEMENTTYPE>
ListIterator interface for a single
element.| Constructor and Description |
|---|
SingleElementListIterator(ELEMENTTYPE aElement) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ELEMENTTYPE o) |
static <T> ListIterator<T> |
create(T aElement) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasNext() |
boolean |
hasPrevious() |
ELEMENTTYPE |
next() |
int |
nextIndex() |
ELEMENTTYPE |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(ELEMENTTYPE o) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEachRemainingpublic SingleElementListIterator(@Nullable ELEMENTTYPE aElement)
@UnsupportedOperation public void add(ELEMENTTYPE o)
add in interface ListIterator<ELEMENTTYPE>public boolean hasNext()
hasNext in interface Iterator<ELEMENTTYPE>hasNext in interface ListIterator<ELEMENTTYPE>public boolean hasPrevious()
hasPrevious in interface ListIterator<ELEMENTTYPE>@Nullable public ELEMENTTYPE next()
next in interface Iterator<ELEMENTTYPE>next in interface ListIterator<ELEMENTTYPE>public int nextIndex()
nextIndex in interface ListIterator<ELEMENTTYPE>public ELEMENTTYPE previous()
previous in interface ListIterator<ELEMENTTYPE>public int previousIndex()
previousIndex in interface ListIterator<ELEMENTTYPE>@UnsupportedOperation public void remove()
remove in interface Iterator<ELEMENTTYPE>remove in interface ListIterator<ELEMENTTYPE>@UnsupportedOperation public void set(ELEMENTTYPE o)
set in interface ListIterator<ELEMENTTYPE>@Nonnull public static <T> ListIterator<T> create(@Nullable T aElement)
Copyright © 2014–2017 Philip Helger. All rights reserved.