net.sf.jga.util
public class SingletonIterator<T> extends Object implements ListIterator<T>
Constructor Summary | |
---|---|
SingletonIterator(T value) |
Method Summary | |
---|---|
void | add(T arg) |
boolean | hasNext()
Returns true if the item has not yet been returned. |
boolean | hasPrevious()
Returns true if the item has not yet been returned. |
T | next()
Returns the single item |
int | nextIndex() |
T | previous()
Returns the single item |
int | previousIndex() |
void | remove() |
void | set(T value) |
Returns: true if the item has not yet been returned
Returns: true if the item has not yet been returned
Returns: the single item
Throws: NoSuchElementException if the item has already been returned
Returns: the single item
Throws: NoSuchElementException if the item has already been returned