public interface DBID extends DBIDRef, Comparable<DBIDRef>, ArrayDBIDs, SetDBIDs
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DBIDRef other)
Compare two DBIDs for ordering.
|
boolean |
equals(Object obj)
Deprecated.
|
int |
hashCode()
In contrast to
DBIDRef , the DBID interface is supposed to have a
stable hash code. |
internalGetIndex
assignVar, binarySearch, get, iter, size, slice
int hashCode()
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(Object obj)
DBIDRef
, the DBID interface is supposed to have a
stable equals for other DBIDs.
Yet, 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.compareTo
in interface Comparable<DBIDRef>
other
- Other DBID objectCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.