All Packages Class Hierarchy This Package Previous Next Index
Interface aioli.vtp.Iterator
- public interface Iterator
- extends Cloneable
Basic Interface for all iterators.
-
advance()
- Advances by one.
-
advance(int)
- Advances by n.
-
atEnd()
- Returns true if I'm positioned after the last item.
-
clone()
- Returns a copy of the iterator with the current position.
-
get()
- Returns The object at the current position.
-
isLastElement()
- Returns true if the current element is the last one, false otherwise
-
setPosition(int)
- Sets the new position at n.
clone
public abstract Object clone()
- Returns a copy of the iterator with the current position.
- Overrides:
- clone in class Object
get
public abstract Object get()
- Returns The object at the current position.
atEnd
public abstract boolean atEnd()
- Returns true if I'm positioned after the last item.
isLastElement
public abstract boolean isLastElement()
- Returns true if the current element is the last one, false otherwise
advance
public abstract void advance()
- Advances by one.
advance
public abstract void advance(int n)
- Advances by n.
does nothing if the new position is out of bound.
- Parameters:
- n - The increment of the new position.
setPosition
public abstract void setPosition(int n)
- Sets the new position at n.
does nothing if the new position is out of bound.
- Parameters:
- n - The new position of the Iterator.
All Packages Class Hierarchy This Package Previous Next Index