| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jga.util.EmptyIterator<T>
public class EmptyIterator<T>
Iterator over an empty set of elements.
| Constructor Summary | |
|---|---|
| EmptyIterator() | |
| 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 | 
|  java.util.Iterator<T> | iterator() | 
|  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 | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public EmptyIterator()
| Method Detail | 
|---|
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>public boolean hasNext()
hasNext in interface java.util.Iterator<T>hasNext in interface java.util.ListIterator<T>public T next()
next in interface java.util.Iterator<T>next in interface java.util.ListIterator<T>public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<T>public T previous()
previous in interface java.util.ListIterator<T>public int nextIndex()
nextIndex in interface java.util.ListIterator<T>public int previousIndex()
previousIndex in interface java.util.ListIterator<T>public void remove()
remove in interface java.util.Iterator<T>remove in interface java.util.ListIterator<T>public void set(T arg)
set in interface java.util.ListIterator<T>public void add(T arg)
add in interface java.util.ListIterator<T>| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||