|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.pairs.DoubleObjPair<O>
O
- Object typepublic class DoubleObjPair<O>
Pair storing a native double value and an arbitrary object.
Field Summary | |
---|---|
double |
first
Double value |
O |
second
Second object value |
Constructor Summary | |
---|---|
DoubleObjPair(double first,
O second)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(DoubleObjPair<O> o)
|
boolean |
equals(Object obj)
|
Double |
getFirst()
Deprecated. use pair.first to avoid boxing! |
O |
getSecond()
Get the second object - note: this may cause autoboxing, use pair.second for native pairs! |
String |
toString()
Canonical toString operator |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double first
public O second
Constructor Detail |
---|
public DoubleObjPair(double first, O second)
first
- First valuesecond
- Second valueMethod Detail |
---|
@Deprecated public Double getFirst()
PairInterface
getFirst
in interface PairInterface<Double,O>
public O getSecond()
PairInterface
getSecond
in interface PairInterface<Double,O>
public int compareTo(DoubleObjPair<O> o)
compareTo
in interface Comparable<DoubleObjPair<O>>
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |