edu.iastate.metnet.metaomgraph
Class CorrelationValue
java.lang.Object
java.lang.Number
edu.iastate.metnet.metaomgraph.CorrelationValue
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class CorrelationValue
- extends java.lang.Number
- implements java.lang.Comparable
Enables the analyzation panel to display results as percentages, but still
sort the table using doubles. Using NumberFormat.getPercentInstance() causes
the TableSorter to sort as if the results were strings, which puts 10%
immediately after 1%.
- Author:
- Nick Ransom
- See Also:
- Serialized Form
|
Field Summary |
protected double |
myValue
|
| Methods inherited from class java.lang.Number |
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
myValue
protected double myValue
CorrelationValue
public CorrelationValue(double myValue)
compareTo
public int compareTo(java.lang.Object arg0)
- Specified by:
compareTo in interface java.lang.Comparable
oldcompareTo
public int oldcompareTo(java.lang.Object arg0)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
main
public static void main(java.lang.String[] args)
doubleValue
public double doubleValue()
- Specified by:
doubleValue in class java.lang.Number
- Returns:
- A double representation of this CorrelationValue
floatValue
public float floatValue()
- Specified by:
floatValue in class java.lang.Number
- Returns:
- A float representation of this CorrelationValue
intValue
public int intValue()
- Specified by:
intValue in class java.lang.Number
- Returns:
- An int representation of this CorrelationValue
longValue
public long longValue()
- Specified by:
longValue in class java.lang.Number
- Returns:
- A long representation of this CorrelationValue