
public interface DBIDIter extends DBIDRef, Iter
for (DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
Object o = relation.get(iter); // Many interfaces allow direct use
DBID id = DBIDUtil.deref(iter); // Materialize only if you need to!
}
We list some fundamental differences.
iter.valid() refers to the current element,
Iterator.next() to the next.iter.advance() does not return an element. Use
get... to access it.DBIDIter.get... do not advance the iterator.| Modifier and Type | Method and Description |
|---|---|
DBIDIter |
advance()
Moves the iterator forward to the next entry.
|
equals, hashCode, internalGetIndexCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.