Package org.opennms.features.geocoder
Class Coordinates
- java.lang.Object
-
- org.opennms.features.geocoder.Coordinates
-
- All Implemented Interfaces:
java.io.Serializable
public class Coordinates extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BAD_COORDINATES
-
Constructor Summary
Constructors Constructor Description Coordinates()
Coordinates(double longitude, double latitude)
Coordinates(float longitude, float latitude)
Coordinates(java.lang.String lonLat)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
double
getLatitude()
double
getLongitude()
int
hashCode()
protected void
setCoordinates(double longitude, double latitude)
protected void
setCoordinates(float longitude, float latitude)
protected void
setCoordinates(java.lang.String lonLat)
static java.lang.Double[]
splitCommaSeparatedDoubles(java.lang.String coordinateString)
java.lang.String
toString()
-
-
-
Field Detail
-
BAD_COORDINATES
public static final java.lang.String BAD_COORDINATES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Coordinates
public Coordinates()
-
Coordinates
public Coordinates(java.lang.String lonLat) throws GeocoderException
- Throws:
GeocoderException
-
Coordinates
public Coordinates(double longitude, double latitude)
-
Coordinates
public Coordinates(float longitude, float latitude)
-
-
Method Detail
-
splitCommaSeparatedDoubles
public static java.lang.Double[] splitCommaSeparatedDoubles(java.lang.String coordinateString) throws GeocoderException
- Throws:
GeocoderException
-
setCoordinates
protected void setCoordinates(java.lang.String lonLat) throws GeocoderException
- Throws:
GeocoderException
-
setCoordinates
protected void setCoordinates(double longitude, double latitude)
-
setCoordinates
protected void setCoordinates(float longitude, float latitude)
-
getLongitude
public double getLongitude()
-
getLatitude
public double getLatitude()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-