net.sf.jga.util
public class EmptyIterator<T> extends Object implements ListIterator<T>
Method Summary | |
---|---|
void | add(T arg)
throws UnsupportedOperationException |
boolean | hasNext()
Returns false: the set of elements is empty by definition |
boolean | hasPrevious()
Returns false: the set of elements is empty by definition |
T | next()
throws NoSuchElement exception
|
int | nextIndex()
returns the size of the list (0, in this case)
|
T | previous()
throws NoSuchElement exception
|
int | previousIndex()
returns -1, as there is no previous
|
void | remove()
throws UnsupportedOperationException |
void | set(T arg)
throws UnsupportedOperationException |
Returns: false
Returns: false
Returns: nothing
Returns: 0
Returns: nothing
Returns: -1;