
| JGL - The Generic Collection Library for Java |
All Packages Class Hierarchy This Package Previous Next Index
Interface com.objectspace.jgl.RandomAccessIterator
- public interface RandomAccessIterator
- extends BidirectionalIterator
RandomAccessIterator is the interface of all iterators that can
read and/or write one item at a time in a forwards or backwards
direction. In addition, two random access iterators may be efficiently
compared for their relative location to each other.
-
clone()
- Return a clone of myself.
-
index()
- Return the index of my current position.
-
less(RandomAccessIterator)
- Return true if I'm before a specified iterator.
index
public abstract int index()
- Return the index of my current position.
less
public abstract boolean less(RandomAccessIterator iterator)
- Return true if I'm before a specified iterator.
- Parameters:
- iterator - The iterator to compare myself against.
clone
public abstract Object clone()
- Return a clone of myself.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index