public class DecreasingVectorIter extends AbstractVectorIter implements IntegerComparator
pos, sort, vec
Constructor and Description |
---|
DecreasingVectorIter(NumberVector vec)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DecreasingVectorIter |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
int |
compare(int x,
int y)
Compare two Integer.
|
DecreasingVectorIter |
retract()
Moves the iterator backward to the previous entry.
|
DecreasingVectorIter |
seek(int off)
Moves the iterator to the given position
|
advance, dim, getOffset, tiedToPrevious, valid
public DecreasingVectorIter(NumberVector vec)
vec
- Vector to iterate over.public int compare(int x, int y)
IntegerComparator
compare
in interface IntegerComparator
x
- First inty
- Second intpublic DecreasingVectorIter advance(int count)
ArrayIter
advance
in interface ArrayIter
advance
in class AbstractVectorIter
count
- offset to move forward or backwardspublic DecreasingVectorIter retract()
ArrayIter
retract
in interface ArrayIter
retract
in class AbstractVectorIter
public DecreasingVectorIter seek(int off)
ArrayIter
seek
in interface ArrayIter
seek
in class AbstractVectorIter
off
- Seek offsetCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.