public class GPSCoordinates
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GPSCoordinates() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Double |
getLatitude()
Latitude
|
java.lang.Double |
getLongitude()
Longitude
|
int |
hashCode() |
void |
setLatitude(java.lang.Double latitude)
Latitude
|
void |
setLongitude(java.lang.Double longitude)
Longitude
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GPSCoordinates |
withLatitude(java.lang.Double latitude)
Latitude
|
GPSCoordinates |
withLongitude(java.lang.Double longitude)
Longitude
|
public java.lang.Double getLatitude()
public void setLatitude(java.lang.Double latitude)
latitude
- Latitudepublic GPSCoordinates withLatitude(java.lang.Double latitude)
Returns a reference to this object so that method calls can be chained together.
latitude
- Latitudepublic java.lang.Double getLongitude()
public void setLongitude(java.lang.Double longitude)
longitude
- Longitudepublic GPSCoordinates withLongitude(java.lang.Double longitude)
Returns a reference to this object so that method calls can be chained together.
longitude
- Longitudepublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.