|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.japi.util.EmptyIterator<T>
public class EmptyIterator<T>
An iterator that never returns elements and thus is always empty.
Constructor Summary | |
---|---|
EmptyIterator()
Create an Empty Iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements. |
T |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). |
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 boolean hasNext()
hasNext
in interface Iterator<T>
public T next() throws NoSuchElementException
Iterator.hasNext()
method returns false will
return each element in the underlying collection exactly once.
next
in interface Iterator<T>
NoSuchElementException
- iteration has no more elements.public void remove()
remove
in interface Iterator<T>
|
JAPI Yet another Java API API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |