public final class Point extends java.lang.Object implements java.lang.Comparable<Point>
| Constructor and Description |
|---|
Point(long time,
double lat,
double lng)
Constructor
|
public Point(long time,
double lat,
double lng)
time - Time in milliseconds since epoch when the point was recorded see System.currentTimeMillis()lat - Latitude as a real number from -90.0 to 90.0lng - Longitude as a real number from -180.0 to 180.0public long getTime()
public double getLat()
public double getLng()
public int compareTo(Point that)
compareTo in interface java.lang.Comparable<Point>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object