|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jqurantree.core.collections.ImmutableIteratorBase<T>
T
- the type of element supported by this iteratorpublic abstract class ImmutableIteratorBase<T>
ImmutableIteratorBase
provides a common implementation for
iterators that do not modify their underlying collection.
Constructor Summary | |
---|---|
ImmutableIteratorBase()
|
Method Summary | |
---|---|
abstract boolean |
hasNext()
Returns true if the iteration has more elements. |
abstract T |
next()
Returns the next element in the iteration. |
void |
remove()
Always throws an UnsupportedOperationException , since the
underlying collection is immutable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImmutableIteratorBase()
Method Detail |
---|
public abstract boolean hasNext()
true
if the iteration has more elements.
hasNext
in interface java.util.Iterator<T>
true
if the iterator has more elements.public abstract T next()
next
in interface java.util.Iterator<T>
public void remove()
UnsupportedOperationException
, since the
underlying collection is immutable
remove
in interface java.util.Iterator<T>
java.lang.UnsupportedOperationException
- since the remove
operation is not supported
by this immutable iterator.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |