
public interface DBIDIter extends DBIDRef, Iter
for (DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
iter.getDBID();
}
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 |
|---|---|
DBID |
getDBID()
Get the referenced
DBID. |
compareDBID, equals, getIntegerID, hashCode, sameDBID