Class Location
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.Location
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Location extends Object implements Serializable, Cloneable
Represents a latitude and longitude pair, expressed in geographic coordinate system degrees (for example 47.6204, -122.3491).
Elevation is currently not supported.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Location()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Location
clone()
boolean
equals(Object obj)
Double
getLatitude()
The latitude.Double
getLongitude()
The longitude.int
hashCode()
void
setLatitude(Double latitude)
The latitude.void
setLongitude(Double longitude)
The longitude.String
toString()
Returns a string representation of this object; useful for testing and debugging.Location
withLatitude(Double latitude)
The latitude.Location
withLongitude(Double longitude)
The longitude.
-
-
-
Method Detail
-
setLatitude
public void setLatitude(Double latitude)
The latitude.
- Parameters:
latitude
- The latitude.
-
getLatitude
public Double getLatitude()
The latitude.
- Returns:
- The latitude.
-
withLatitude
public Location withLatitude(Double latitude)
The latitude.
- Parameters:
latitude
- The latitude.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLongitude
public void setLongitude(Double longitude)
The longitude.
- Parameters:
longitude
- The longitude.
-
getLongitude
public Double getLongitude()
The longitude.
- Returns:
- The longitude.
-
withLongitude
public Location withLongitude(Double longitude)
The longitude.
- Parameters:
longitude
- The longitude.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-