|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xshare.base.iterator.OneElementIterator
Specialized Iterator
implementation which
wraps a single object with an Iterator
,
which can return only the given object and this only ones.
next()
it is not any longer referenzed
by this iterator.
LimitedIterator
Constructor Summary | |
OneElementIterator(java.lang.Object pObject)
|
Method Summary | |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
This operation is not supported for this type of iterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OneElementIterator(java.lang.Object pObject)
java.lang.NullPointerException
- if the object to
be maintained by this iterator is null
.Method Detail |
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
- if this method is
called since it is not supported.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 |