Method ADT.CircularList()->CircularListIterator()->distance()


Method distance

int distance(object iter)

Parameter iter

The iterator to measure the distance to.

Returns

Returns distance between this iterator and iter.

Throws

An error if the two iterator could not be compared.

Note

This operation is only valid if both iterators are for the same CircularList object.