|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthalo.userinterface.gui.tools.Tuple<Double,B>
public class Tuple<Double,B>
Class to save a tuple of two values that can be sorted numerically over the second value
Constructor Summary | |
---|---|
Tuple(double first,
B second)
Constructs a tuple containing a pair of values |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
double |
getFirst()
Returns the first value for the tuple |
B |
getSecond()
Returns the second value for the tuple |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tuple(double first, B second)
first
- The first (numerical) valuesecond
- The second valueMethod Detail |
---|
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable<java.lang.Object>
public double getFirst()
public B getSecond()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |