All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface aioli.vtp.Iterator

public interface Iterator
extends Cloneable
Basic Interface for all iterators.


Method Index

 o advance()
Advances by one.
 o advance(int)
Advances by n.
 o atEnd()
Returns true if I'm positioned after the last item.
 o clone()
Returns a copy of the iterator with the current position.
 o get()
Returns The object at the current position.
 o isLastElement()
Returns true if the current element is the last one, false otherwise
 o setPosition(int)
Sets the new position at n.

Methods

 o clone
 public abstract Object clone()
Returns a copy of the iterator with the current position.

Overrides:
clone in class Object
 o get
 public abstract Object get()
Returns The object at the current position.

 o atEnd
 public abstract boolean atEnd()
Returns true if I'm positioned after the last item.

 o isLastElement
 public abstract boolean isLastElement()
Returns true if the current element is the last one, false otherwise

 o advance
 public abstract void advance()
Advances by one.

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