| Modifier and Type | Field and Description |
|---|---|
| private static final EmptyIterator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(T t)
Implements java. Inserts the specified element into the list (optional operation). |
| public static <T> EmptyIterator | |
| public boolean | hasNext()
Implements java. Returns |
| public boolean | hasPrevious()
Implements java. Returns |
| public T | next()
Implements java. Returns the next element in the list and advances the cursor position. |
| public int | nextIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public T | previous()
Implements java. Returns the previous element in the list and moves the cursor position backwards. |
| public int | previousIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public void | remove()
Implements java. Removes from the list the last element that was returned by |
| public void | set(T t)
Implements java. Replaces the last element returned by |
| INSTANCE | back to summary |
|---|---|
| private static final EmptyIterator<?> INSTANCE | |
| EmptyIterator | back to summary |
|---|---|
| private EmptyIterator() | |
| add | back to summary |
|---|---|
| public void add(T t) Implements java. Doc from java. Inserts the specified element into the list (optional operation).
The element is inserted immediately before the element that
would be returned by
| |
| getInstance | back to summary |
|---|---|
| public static <T> EmptyIterator | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public T next() Implements java. Doc from java. Returns the next element in the list and advances the cursor position.
This method may be called repeatedly to iterate through the list,
or intermixed with calls to
| |
| nextIndex | back to summary |
|---|---|
| public int nextIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| previous | back to summary |
|---|---|
| public T previous() Implements java. Doc from java. Returns the previous element in the list and moves the cursor
position backwards. This method may be called repeatedly to
iterate through the list backwards, or intermixed with calls to
| |
| previousIndex | back to summary |
|---|---|
| public int previousIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| remove | back to summary |
|---|---|
| public void remove() Implements java. Doc from java. Removes from the list the last element that was returned by
| |
| set | back to summary |
|---|---|
| public void set(T t) Implements java. Doc from java. Replaces the last element returned by
| |