|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xshare.base.iterator.SkipNullIterator
Iterator which skips all null
values of a
given iteration.
Constructor Summary | |
SkipNullIterator(java.util.Iterator pSourceIterator)
Creates a new instance of this iterator class for a given iteration. |
Method Summary | |
boolean |
hasNext()
Checks if this iteration has still elements left. |
java.lang.Object |
next()
Returns the next element of the iteration. |
void |
remove()
Calls the Iterator.remove() method of the
underlying iteration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SkipNullIterator(java.util.Iterator pSourceIterator)
pSourceIterator
- a Iterator
object pointing
to the iteration of elements which should be filtered.Method Detail |
public void remove()
Iterator.remove()
method of the
underlying iteration.
remove
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
java.util.NoSuchElementException
- if hasNext()
denies the
that there are objects left.hasNext()
public boolean hasNext()
hasNext
in interface java.util.Iterator
boolean
value, which is true
if there are some elements left to return via next()
.
Otherwise false
is returned.next()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |