public class Location
extends java.lang.Object
| Constructor and Description |
|---|
Location(java.lang.String latitude,
java.lang.String longitude)
Class constructor.
|
Location(java.lang.String latitude,
java.lang.String longitude,
java.lang.String elevation)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getElevation()
Retrieves the location elevation.
|
java.lang.String |
getLatitude()
Retrieves the location latitude.
|
java.lang.String |
getLongitude()
Retrieves the location longitude.
|
boolean |
isCurrent()
Retrieves whether this location is the current one or not.
|
void |
setCurrent(boolean isCurrent)
Sets whether this location is the current or not.
|
java.lang.String |
toString() |
public Location(java.lang.String latitude,
java.lang.String longitude)
0).latitude - Location latitude.longitude - Location longitude.java.lang.IllegalArgumentException - if latitude == null
or if longitude == null
or if any of the provided values is an
invalid value.public Location(java.lang.String latitude,
java.lang.String longitude,
java.lang.String elevation)
latitude - Location latitude.longitude - Location longitude.elevation - Location elevation.java.lang.IllegalArgumentException - if latitude == null
or if longitude == null
or if elevation == null
or if any of the provided values is an
invalid value.public java.lang.String getElevation()
public java.lang.String getLatitude()
public java.lang.String getLongitude()
public boolean isCurrent()
public void setCurrent(boolean isCurrent)
isCurrent - True if the location is the current one, false otherwise.public java.lang.String toString()
toString in class java.lang.Object© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.