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 protectedDoubleIntegerDBIDPair(double value, int id)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DoubleDBIDPair o)doubledoubleValue()Get the double value of the pair.intinternalGetIndex()Internal only: Get the internal index.java.lang.StringtoString()
-
-
-
Method Detail
-
internalGetIndex
public int internalGetIndex()
Description copied from interface:DBIDRefInternal only: Get the internal index.NOT FOR PUBLIC USE - ELKI Optimization engine only.
- Specified by:
internalGetIndexin interfaceDBIDRef- Specified by:
internalGetIndexin interfaceIntegerDBIDRef- Returns:
- Internal index
-
compareTo
public int compareTo(DoubleDBIDPair o)
- Specified by:
compareToin interfacejava.lang.Comparable<DoubleDBIDPair>
-
doubleValue
public double doubleValue()
Description copied from interface:DoubleDBIDPairGet the double value of the pair.- Specified by:
doubleValuein interfaceDoubleDBIDPair- Returns:
- Double
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-