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