|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xshare.base.iterator.LimitedIterator
OneElementIterator
Constructor Summary | |
LimitedIterator(int pMaxElements,
java.util.Iterator pSourceIterator)
|
Method Summary | |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LimitedIterator(int pMaxElements, java.util.Iterator pSourceIterator)
java.lang.IllegalArgumentException
- if the limit of objects
to return by this iterator is negativ
java.lang.NullPointerException
- if the source iterator is nullMethod Detail |
public void remove()
remove
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public boolean hasNext()
hasNext
in interface java.util.Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |