protected static class EmptyDBIDs.EmptyDBIDIterator extends java.lang.Object implements DBIDArrayMIter
Modifier | Constructor and Description |
---|---|
protected |
EmptyDBIDIterator() |
Modifier and Type | Method and Description |
---|---|
EmptyDBIDs.EmptyDBIDIterator |
advance()
Moves the iterator forward to the next entry.
|
EmptyDBIDs.EmptyDBIDIterator |
advance(int count)
Moves the iterator forward or backward by the given offset.
|
boolean |
equals(java.lang.Object other)
WARNING: calling equality on a reference may be an indicator of
incorrect usage, as it is not clear whether the programmer meant the
references to be the same or the DBIDs.
|
int |
getOffset()
Get current iterator offset.
|
int |
internalGetIndex()
Internal only: Get the internal index.
|
void |
remove()
Remove the object the iterator currently points to.
|
EmptyDBIDs.EmptyDBIDIterator |
retract()
Moves the iterator backward to the previous entry.
|
EmptyDBIDs.EmptyDBIDIterator |
seek(int off)
Moves the iterator to the given position
|
void |
setDBID(DBIDRef val)
Set the current value.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public boolean valid()
Iter
public EmptyDBIDs.EmptyDBIDIterator advance()
Iter
public int internalGetIndex()
DBIDRef
NOT FOR PUBLIC USE - ELKI Optimization engine only.
internalGetIndex
in interface DBIDRef
public boolean equals(java.lang.Object other)
DBIDRef
Use DBIDUtil.equal(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
or DBIDUtil.compare(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
!
public void remove()
DBIDMIter
DBIDUtil.deref(de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
may return a different
element. Call DBIDIter.advance()
to advance the iterator to the next
element for further processing.public EmptyDBIDs.EmptyDBIDIterator advance(int count)
ArrayIter
advance
in interface DBIDArrayIter
advance
in interface ArrayIter
count
- offset to move forward or backwardspublic EmptyDBIDs.EmptyDBIDIterator retract()
ArrayIter
retract
in interface DBIDArrayIter
retract
in interface ArrayIter
public EmptyDBIDs.EmptyDBIDIterator seek(int off)
ArrayIter
seek
in interface DBIDArrayIter
seek
in interface DBIDArrayMIter
seek
in interface ArrayIter
off
- Seek offsetpublic int getOffset()
ArrayIter
public void setDBID(DBIDRef val)
DBIDArrayMIter
setDBID
in interface DBIDArrayMIter
val
- new valueCopyright © 2019 ELKI Development Team. License information.