Interface: Iterator

system.data. Iterator

This interface defines the iterator pattern over a collection.

Implementors:

Methods


delete()

Deletes from the underlying collection the last element returned by the iterator (optional operation).


hasNext()

Returns true if the iteration has more elements.

Returns:

true if the iteration has more elements.


key()

Returns the current key of the internal pointer of the iterator (optional operation).

Returns:

the current key of the internal pointer of the iterator (optional operation).


next()

Returns the next element in the iteration.

Returns:

the next element in the iteration.


reset()

Reset the internal pointer of the iterator (optional operation).


seek()

Changes the position of the internal pointer of the iterator (optional operation).


toString()

Returns the string representation of this instance.

Returns:

the string representation of this instance.