All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Interface 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.

Version:
JOS-FileSystem 4 Preview (25-Mar-98)
Author:
ObjectSpace, Inc.

Method Index

 o clone()
Return a clone of myself.
 o index()
Return the index of my current position.
 o less(RandomAccessIterator)
Return true if I'm before a specified iterator.

Methods

 o index
public abstract int index()
Return the index of my current position.

 o less
public abstract boolean less(RandomAccessIterator iterator)
Return true if I'm before a specified iterator.

Parameters:
iterator - The iterator to compare myself against.
 o clone
public abstract Object clone()
Return a clone of myself.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index