@Embeddable public class Coordinate extends Object implements Comparable<Coordinate>
| Constructor and Description |
|---|
Coordinate() |
Coordinate(Float latitude,
Float longitude)
Constructor for this class
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Coordinate c)
The compareTo method compares the receiving object with the specified object and returns a
negative integer, 0, or a positive integer depending on whether the receiving object is
less than, equal to, or greater than the specified object.
|
boolean |
equals(Object o)
A method to determine if one event is the same as another
|
Float |
getLatitude() |
String |
getLatitudeAsString() |
Float |
getLongitude() |
String |
getLongitudeAsString() |
int |
hashCode()
Overide the default hashcode method
|
void |
setLatitude(Float latitude) |
void |
setLongitude(Float longitude) |
String |
toString() |
public Float getLatitude()
public Float getLongitude()
public void setLatitude(Float latitude)
public void setLongitude(Float longitude)
public String getLatitudeAsString()
public String getLongitudeAsString()
public boolean equals(Object o)
public int hashCode()
public int compareTo(Coordinate c)
compareTo in interface Comparable<Coordinate>c - the event to compare this one toCopyright © 2019. All rights reserved.