public interface DBID extends DBIDRef, java.lang.Comparable<DBIDRef>, ArrayDBIDs, SetDBIDs
While this currently is just an Integer, it should be avoided to store the object IDs in regular integers to reduce problems if this API ever changes (for example if someone needs to do context tracking for debug purposes!)
In particular, a developer should not make any assumption of these IDs being consistent across multiple results/databases.
|Modifier and Type||Method and Description|
Compare two DBIDs for ordering.
In contrast to
assignVar, binarySearch, get, iter, size, slice
DBIDRef, the DBID interface is supposed to have a stable hash code. However, it is generally preferred to use optimized storage classes instead of Java collections!
@Deprecated boolean equals(java.lang.Object obj)
DBIDRef, the DBID interface is supposed to have a stable equals for other DBIDs.
DBIDUtil.equal(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef) is more type safe and explicit.
int compareTo(DBIDRef other)
DBIDUtil.compare(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef), which is more explicit.
other- Other DBID object
Copyright © 2019 ELKI Development Team. License information.