public class SingletonIterator<T> extends Object implements ListIterator<T>
| Constructor and Description |
|---|
SingletonIterator(T singleton) |
SingletonIterator(T singleton,
int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T t) |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic SingletonIterator(T singleton)
public SingletonIterator(T singleton, int index)
public boolean hasNext()
public T next()
public boolean hasPrevious()
hasPrevious in interface ListIterator<T>public T previous()
previous in interface ListIterator<T>public int nextIndex()
nextIndex in interface ListIterator<T>public int previousIndex()
previousIndex in interface ListIterator<T>public void remove()
public void set(T t)
set in interface ListIterator<T>public void add(T t)
add in interface ListIterator<T>Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.