public class DefaultLocation extends DistanceUnawareLocation implements DistanceAwareLocation
Location. Validates during creation if given distance is not null.| Constructor and Description |
|---|
DefaultLocation(PointOfServiceModel posModel,
java.lang.Double distance) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DistanceAwareLocation distanceAwareLocation) |
java.lang.Double |
getDistance()
returns distance [km] to reference GPS position
|
getAddressData, getCountry, getDescription, getGPS, getMapIconUrl, getName, getTextualAddress, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAddressData, getCountry, getDescription, getGPS, getMapIconUrl, getName, getTextualAddress, getTypepublic DefaultLocation(PointOfServiceModel posModel, java.lang.Double distance)
public java.lang.Double getDistance()
DistanceAwareLocationgetDistance in interface DistanceAwareLocationpublic int compareTo(DistanceAwareLocation distanceAwareLocation)
compareTo in interface java.lang.Comparable<DistanceAwareLocation>Copyright © 2018 SAP SE. All Rights Reserved.