All Packages Class Hierarchy This Package Previous Next Index
Interface jgl.BidirectionalIterator
- public 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:
- JOS-FileSystem 4 Preview (25-Mar-98)
- Author:
- ObjectSpace, Inc.
-
clone()
- J++ requires clone
-
get()
- Return the object at my current position.
-
get(int)
- Return the object that is a specified distance from my current position.
-
put(int, Object)
- Replace the object at a specified distance from my current position.
-
retreat()
- Retreat by one.
-
retreat(int)
- Retreat by a specified amount.
clone
public abstract Object clone()
- J++ requires clone
- Overrides:
- clone in class Object
retreat
public abstract void retreat()
- Retreat by one.
retreat
public abstract void retreat(int n)
- Retreat by a specified amount.
- Parameters:
- n - The amount to retreat.
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.
get
public abstract Object get()
- Return the object at my current position.
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