tango.util.collection.impl.AbstractIterator

class AbstractIterator(T) : GuardIterator!(T) #
A convenient base class for implementations of GuardIterator

Author:

Doug Lea @version 0.93

For an introduction to this package see Overview .

View!(T) view [private] #
The collection being enumerated
uint mutation [private] #
The version number of the collection we got upon construction
uint togo [private] #
The number of elements we think we have left. Initialized to view.size() upon construction
bool corrupted() [public, final] #
Implements tango.util.collection.impl.Collection.CollectionIterator.corrupted. Claim corruption if version numbers differ

See Also:

tango.util.collection.impl.Collection.CollectionIterator.corrupted
uint remaining() [public, final] #
Implements tango.util.collection.impl.Collection.CollectionIterator.numberOfRemaingingElements.

See Also:

tango.util.collection.impl.Collection.CollectionIterator.remaining
bool more() [public, final] #
Implements tango.util.collection.model.Iterator.more. Return true if remaining > 0 and not corrupted

See Also:

tango.util.collection.model.Iterator.more
void decRemaining() [protected, final] #
Subclass utility. Tries to decrement togo, raising exceptions if it is already zero or if corrupted() Always call as the first line of get.