|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.IDIDDoubleTriple
public class IDIDDoubleTriple
Encapsulates the attributes of a pair containing two integer ids and a double value.
Field Summary | |
---|---|
private int |
id1
The first id. |
private int |
id2
The second id. |
private double |
value
The value. |
Constructor Summary | |
---|---|
IDIDDoubleTriple(int id1,
int id2,
double value)
Constructs a triple of the two given ids and a given value. |
Method Summary | |
---|---|
int |
compareTo(IDIDDoubleTriple o)
Compares this object with the specified object for order. |
int |
getId1()
Returns the first id of this triple. |
int |
getId2()
Returns the second id of this triple. |
double |
getValue()
Returns the value of this triple. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final int id1
private final int id2
private final double value
Constructor Detail |
---|
public IDIDDoubleTriple(int id1, int id2, double value)
id1
- the first idid2
- the second idvalue
- the valueMethod Detail |
---|
public int getId1()
public int getId2()
public double getValue()
public int compareTo(IDIDDoubleTriple o)
compareTo
in interface Comparable<IDIDDoubleTriple>
o
- the Object to be compared.
ClassCastException
- if the specified object's type prevents it
from being compared to this Object.public String toString()
toString
in class Object
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |