de.micromata.opengis.kml.v_2_2_0
Class Coordinate
java.lang.Object
de.micromata.opengis.kml.v_2_2_0.Coordinate
- All Implemented Interfaces:
- java.lang.Cloneable
public class Coordinate
- extends java.lang.Object
- implements java.lang.Cloneable
Constructor Summary |
Coordinate(double longitude,
double latitude)
|
Coordinate(double longitude,
double latitude,
double altitude)
|
Coordinate(java.lang.String coordinates)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
longitude
protected double longitude
latitude
protected double latitude
altitude
protected double altitude
Coordinate
public Coordinate(double longitude,
double latitude)
Coordinate
public Coordinate(double longitude,
double latitude,
double altitude)
Coordinate
public Coordinate(java.lang.String coordinates)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getLongitude
public double getLongitude()
setLongitude
public Coordinate setLongitude(double longitude)
getLatitude
public double getLatitude()
setLatitude
public Coordinate setLatitude(double latitude)
getAltitude
public double getAltitude()
setAltitude
public Coordinate setAltitude(double altitude)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
withLongitude
public Coordinate withLongitude(double longitude)
- fluent setter
- Parameters:
longitude
- required parameter- See Also:
setLongitude(double)
withLatitude
public Coordinate withLatitude(double latitude)
- fluent setter
- Parameters:
latitude
- required parameter- See Also:
setLatitude(double)
withAltitude
public Coordinate withAltitude(double altitude)
- fluent setter
- Parameters:
altitude
- required parameter- See Also:
setAltitude(double)
clone
public Coordinate clone()
- Overrides:
clone
in class java.lang.Object