Package elki.database.ids.integer
Class DoubleIntegerDBIDPair
- java.lang.Object
-
- elki.database.ids.integer.DoubleIntegerDBIDPair
-
- All Implemented Interfaces:
DBIDRef
,DoubleDBIDPair
,IntegerDBIDRef
,java.lang.Comparable<DoubleDBIDPair>
class DoubleIntegerDBIDPair extends java.lang.Object implements DoubleDBIDPair, IntegerDBIDRef
Pair containing a double value and an integer DBID.- Since:
- 0.5.5
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DoubleIntegerDBIDPair(double value, int id)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DoubleDBIDPair o)
double
doubleValue()
Get the double value of the pair.int
internalGetIndex()
Internal only: Get the internal index.java.lang.String
toString()
-
-
-
Method Detail
-
internalGetIndex
public int internalGetIndex()
Description copied from interface:DBIDRef
Internal only: Get the internal index.NOT FOR PUBLIC USE - ELKI Optimization engine only.
- Specified by:
internalGetIndex
in interfaceDBIDRef
- Specified by:
internalGetIndex
in interfaceIntegerDBIDRef
- Returns:
- Internal index
-
compareTo
public int compareTo(DoubleDBIDPair o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<DoubleDBIDPair>
-
doubleValue
public double doubleValue()
Description copied from interface:DoubleDBIDPair
Get the double value of the pair.- Specified by:
doubleValue
in interfaceDoubleDBIDPair
- Returns:
- Double
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-