All Packages Class Hierarchy This Package Previous Next Index
Interface COM.objectspace.jgl.ForwardIterator
- public interface ForwardIterator
- extends InputIterator, OutputIterator
ForwardIterator is the interface of all iterators that can
read and/or write one item at a time in a forward direction.
-
advance()
- Advance by one.
-
advance(int)
- Advance by a specified amount.
-
clone()
- Return a clone of myself.
-
distance(ForwardIterator)
- Return the distance from myself to another iterator.
-
get(int)
- Return the object that is a specified distance from my current position.
-
getContainer()
- Return my associated container.
-
put(int, Object)
- Replace the object at a specified distance from my current position.
advance
public abstract void advance()
- Advance by one.
advance
public abstract void advance(int n)
- Advance by a specified amount.
- Parameters:
- n - The amount to advance.
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.
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.
distance
public abstract int distance(ForwardIterator iterator)
- Return the distance from myself to another iterator.
I should be before the 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
getContainer
public abstract Container getContainer()
- Return my associated container.
All Packages Class Hierarchy This Package Previous Next Index