public class DefaultLocation extends DistanceUnawareLocation implements DistanceAwareLocation, Serializable
Location. Validates during creation if given distance is not null.| Constructor and Description |
|---|
DefaultLocation(PointOfServiceModel posModel,
Double distance) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DistanceAwareLocation distanceAwareLocation) |
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, Double distance) throws LocationInstantiationException
LocationInstantiationExceptionpublic Double getDistance()
DistanceAwareLocationgetDistance in interface DistanceAwareLocationpublic int compareTo(DistanceAwareLocation distanceAwareLocation)
compareTo in interface Comparable<DistanceAwareLocation>Copyright © 2017 SAP SE. All Rights Reserved.