|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataPoint
Represents a single data point.
Implementations of this interface aren't expected to be synchronized.
| Method Summary | |
|---|---|
double |
doubleValue()
Returns the value of the this data point as a double. |
boolean |
isInteger()
Tells whether or not the this data point is a value of integer type. |
long |
longValue()
Returns the value of the this data point as a long. |
long |
timestamp()
Returns the timestamp (in seconds) associated with this data point. |
double |
toDouble()
Returns the value of the this data point as a double, even if
it's a long. |
| Method Detail |
|---|
long timestamp()
boolean isInteger()
true if the ith value is of integer type,
false if it's of doubleing point type.long longValue()
long.
ClassCastException - if the isInteger() == false.double doubleValue()
double.
ClassCastException - if the isInteger() == true.double toDouble()
double, even if
it's a long.
isInteger() == false, this method returns the same
thing as doubleValue(). Otherwise, it returns the same thing as
longValue()'s return value casted to a double.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||