class IntegerDoubleDBIDPair extends Object implements DoubleDBIDPair, IntegerDBIDRef
Modifier and Type | Field and Description |
---|---|
(package private) int |
id
The DB id.
|
(package private) double |
value
The double value.
|
Modifier | Constructor and Description |
---|---|
protected |
IntegerDoubleDBIDPair(double value,
int id)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DoubleDBIDPair o) |
double |
doubleValue()
Get the double value of the pair.
|
Double |
getFirst()
Deprecated.
|
DBID |
getSecond()
Deprecated.
|
int |
internalGetIndex()
Get the internal index.
|
protected IntegerDoubleDBIDPair(double value, int id)
value
- Double valueid
- DBIDpublic int internalGetIndex()
DBIDRef
internalGetIndex
in interface DBIDRef
internalGetIndex
in interface IntegerDBIDRef
public int compareTo(DoubleDBIDPair o)
compareTo
in interface Comparable<DoubleDBIDPair>
public double doubleValue()
DoubleDBIDPair
doubleValue
in interface DoubleDBIDPair
@Deprecated public Double getFirst()
DoubleDBIDPair
getFirst
in interface DoubleDBIDPair
getFirst
in interface PairInterface<Double,DBID>
@Deprecated public DBID getSecond()
DoubleDBIDPair
getSecond
in interface DoubleDBIDPair
getSecond
in interface PairInterface<Double,DBID>