public interface DBID extends DBIDRef, Comparable<DBIDRef>, ArrayDBIDs
Modifier and Type | Method and Description |
---|---|
int |
compareDBID(DBIDRef other)
Compare two objects by the value of the referenced DBID.
|
int |
compareTo(DBIDRef other)
Compare two DBIDs for ordering.
|
boolean |
equals(Object obj)
In contrast to
DBIDRef , the DBID interface is supposed to have a
stable equals for other DBIDs. |
DBID |
getDBID()
Deprecated.
When the object is known to be a DBID, the usage of this method
is pointless, therefore it is marked as deprecated to cause a
warning.
|
int |
hashCode()
In contrast to
DBIDRef , the DBID interface is supposed to have a
stable hash code. |
boolean |
sameDBID(DBIDRef other)
Compare the current value of two referenced DBIDs.
|
getIntegerID
binarySearch, get, iter, size
boolean sameDBID(DBIDRef other)
int compareDBID(DBIDRef other)
compareDBID
in interface DBIDRef
other
- Other DBID or objectint 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!boolean equals(Object obj)
DBIDRef
, the DBID interface is supposed to have a
stable equals for other DBIDs.
Yet, sameDBID(de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
is more type safe and explicit.@Deprecated DBID getDBID()
this
for an
actual DBID.int compareTo(DBIDRef other)
compareDBID(de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
, which is more explicit.compareTo
in interface Comparable<DBIDRef>
other
- Other DBID object