public class ValueAndBooleanDataPoint extends Object implements Comparable<ValueAndBooleanDataPoint>, Serializable
Constructor and Description |
---|
ValueAndBooleanDataPoint(double value,
boolean significant)
Create a new ValueAndBooleanDataPoint object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ValueAndBooleanDataPoint o)
Compares based on the value.
|
double |
getValue()
Returns the value.
|
boolean |
isSignificant()
Returns the significance.
|
void |
setSignificant(boolean signigficant)
Set the significance.
|
void |
setValue(double value)
Set the value.
|
String |
toString()
Returns the value as a string.
|
public ValueAndBooleanDataPoint(double value, boolean significant)
value
- the valuesignificant
- is it significant?public double getValue()
public void setValue(double value)
value
- the value to setpublic boolean isSignificant()
public void setSignificant(boolean signigficant)
signigficant
- the significance to setpublic String toString()
public int compareTo(ValueAndBooleanDataPoint o)
compareTo
in interface Comparable<ValueAndBooleanDataPoint>
Copyright © 2016. All rights reserved.