Class DefaultLocation
java.lang.Object
de.hybris.platform.storelocator.location.impl.DistanceUnawareLocation
de.hybris.platform.storelocator.location.impl.DefaultLocation
- All Implemented Interfaces:
DistanceAwareLocation,Location,Serializable,Comparable<DistanceAwareLocation>
Distance aware implementation of the
Location. Validates during creation if given distance is not null.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(DistanceAwareLocation distanceAwareLocation) returns distance [km] to reference GPS positionMethods inherited from class de.hybris.platform.storelocator.location.impl.DistanceUnawareLocation
getAddressData, getCountry, getDescription, getGPS, getMapIconUrl, getName, getTextualAddress, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.storelocator.location.Location
getAddressData, getCountry, getDescription, getGPS, getMapIconUrl, getName, getTextualAddress, getType
-
Constructor Details
-
DefaultLocation
-
-
Method Details
-
getDistance
Description copied from interface:DistanceAwareLocationreturns distance [km] to reference GPS position- Specified by:
getDistancein interfaceDistanceAwareLocation
-
compareTo
- Specified by:
compareToin interfaceComparable<DistanceAwareLocation>
-