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 Locationclone()booleanequals(Object obj)DoublegetLatitude()The latitude.DoublegetLongitude()The longitude.inthashCode()voidsetLatitude(Double latitude)The latitude.voidsetLongitude(Double longitude)The longitude.StringtoString()Returns a string representation of this object; useful for testing and debugging.LocationwithLatitude(Double latitude)The latitude.LocationwithLongitude(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-