Package overit.geocall.util
Class ArrayIterator<T>
java.lang.Object
overit.geocall.util.ArrayIterator<T>
- Type Parameters:
T- The type of elements returned by the iterator
- All Implemented Interfaces:
Iterator
This class is an implementation of the
Iterator that allows to iterate
over an Array collection of objects of any type.-
Field Details
-
oo
-
pos
protected int pos
-
-
Constructor Details
-
ArrayIterator
Creates a new ArrayIterator- Parameters:
oo- The objects that will fill the Iterator
-
-
Method Details
-
hasNext
public boolean hasNext()Checks if the iterator has more elements. -
next
Returns the next element in the iteration. -
remove
public void remove()Not supported. It throws a newUnsupportedOperationException
-