O
- contained object type.public class ArrayListIter<O> extends Object implements ArrayIter
Modifier and Type | Field and Description |
---|---|
(package private) List<O> |
data
The array list to iterate over.
|
(package private) int |
pos
Current position.
|
Constructor and Description |
---|
ArrayListIter(List<O> data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ArrayIter |
advance()
Moves the iterator forward to the next entry.
|
ArrayIter |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
O |
get()
Get the current element.
|
int |
getOffset()
Get current iterator offset.
|
ArrayIter |
retract()
Moves the iterator backward to the previous entry.
|
ArrayIter |
seek(int off)
Moves the iterator to the given position
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public boolean valid()
Iter
public ArrayIter advance()
Iter
public int getOffset()
ArrayIter
public ArrayIter advance(int count)
ArrayIter
public ArrayIter retract()
ArrayIter
public ArrayIter seek(int off)
ArrayIter
public O get()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.