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