Method Summary |
|
public void | add(Object obj) Add always throws
UnsupportedOperationException . |
public boolean | hasNext() Is another object available from the iterator?
This returns true if the single object hasn't been returned yet. |
public boolean | hasPrevious() Is a previous object available from the iterator?
This returns true if the single object has been returned. |
public Object | next() Get the next object from the iterator. |
public int | nextIndex() Returns the index of the element that would be returned by a subsequent
call to next.
0 or 1 depending on current state. |
public Object | previous() Get the previous object from the iterator. |
public int | previousIndex() Returns the index of the element that would be returned by a subsequent
call to previous. |
public void | remove() Remove the object from this iterator. |
public void | reset() Reset the iterator back to the start. |
public void | set(Object obj) Set sets the value of the singleton. |