public class Coordinate
extends java.lang.Object
Constructor and Description |
---|
Coordinate(long time,
double value)
Creates a coordinate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compares this coordinate with the given object and returns true if they are equal.
|
long |
getTime()
Gets the time (in milliseconds since 1970) for this coordinate.
|
double |
getValue()
Gets the value for this coordinate.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a printable string for this coordinate (time, value)
|
public Coordinate(long time, double value)
time
- time value in milliseconds since 1970 (x value)value
- real value of this coordinate (y value)public long getTime()
public double getValue()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- object to compare topublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object