All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface COM.objectspace.jgl.BidirectionalIterator

public interface interface BidirectionalIterator
extends ForwardIterator
BidirectionalIterator is the interface of all iterators that can read and/or write one item at a time in a forwards or backwards direction.

Version:
2.0.2
Author:
ObjectSpace, Inc.

Method Index

 o clone()
J++ requires clone
 o get()
Return the object at my current position.
 o get(int)
Return the object that is a specified distance from my current position.
 o put(int, Object)
Replace the object at a specified distance from my current position.
 o retreat()
Retreat by one.
 o retreat(int)
Retreat by a specified amount.

Methods

 o clone
 public abstract Object clone()
J++ requires clone

Overrides:
clone in class Object
 o retreat
 public abstract void retreat()
Retreat by one.

 o retreat
 public abstract void retreat(int n)
Retreat by a specified amount.

Parameters:
n - The amount to retreat.
 o get
 public abstract Object get(int offset)
Return the object that is a specified distance from my current position.

Parameters:
offset - The offset from my current position.
 o get
 public abstract Object get()
Return the object at my current position.

 o put
 public abstract void put(int offset,
                          Object object)
Replace the object at a specified distance from my current position.

Parameters:
offset - The offset from my current position.
object - The object to write.

All Packages  Class Hierarchy  This Package  Previous  Next  Index