Class DefaultLocation
- java.lang.Object
-
- de.hybris.platform.storelocator.location.impl.DistanceUnawareLocation
-
- de.hybris.platform.storelocator.location.impl.DefaultLocation
-
- All Implemented Interfaces:
DistanceAwareLocation,Location,java.io.Serializable,java.lang.Comparable<DistanceAwareLocation>
public class DefaultLocation extends DistanceUnawareLocation implements DistanceAwareLocation
Distance aware implementation of theLocation. Validates during creation if given distance is not null.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultLocation(PointOfServiceModel posModel, java.lang.Double distance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(DistanceAwareLocation distanceAwareLocation)java.lang.DoublegetDistance()returns distance [km] to reference GPS position-
Methods inherited from class de.hybris.platform.storelocator.location.impl.DistanceUnawareLocation
getAddressData, getCountry, getDescription, getGPS, getMapIconUrl, getName, getTextualAddress, getType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.storelocator.location.Location
getAddressData, getCountry, getDescription, getGPS, getMapIconUrl, getName, getTextualAddress, getType
-
-
-
-
Constructor Detail
-
DefaultLocation
public DefaultLocation(PointOfServiceModel posModel, java.lang.Double distance)
-
-
Method Detail
-
getDistance
public java.lang.Double getDistance()
Description copied from interface:DistanceAwareLocationreturns distance [km] to reference GPS position- Specified by:
getDistancein interfaceDistanceAwareLocation
-
compareTo
public int compareTo(DistanceAwareLocation distanceAwareLocation)
- Specified by:
compareToin interfacejava.lang.Comparable<DistanceAwareLocation>
-
-