Package org.genesys.geotools.service
Class LonLatCacheKey
- java.lang.Object
-
- org.genesys.geotools.service.LonLatCacheKey
-
- All Implemented Interfaces:
Serializable
public class LonLatCacheKey extends Object implements Serializable
LonLatCacheKey is used as caching key.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LonLatCacheKey(float longitude, float latitude, int allowedDistanceMargin)Instantiates a new lon lat cache key.LonLatCacheKey(float longitude, float latitude, String origCty, int allowedDistanceMargin)Instantiates a new lon lat cache key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetAllowedDistanceMargin()Gets the allowed distance margin.floatgetLatitude()Gets the latitude.floatgetLongitude()Gets the longitude.StringgetOrigCty()Gets the orig cty.inthashCode()
-
-
-
Constructor Detail
-
LonLatCacheKey
public LonLatCacheKey(float longitude, float latitude, int allowedDistanceMargin)Instantiates a new lon lat cache key.- Parameters:
longitude- the longitudelatitude- the latitudeallowedDistanceMargin- the allowed distance margin
-
LonLatCacheKey
public LonLatCacheKey(float longitude, float latitude, String origCty, int allowedDistanceMargin)Instantiates a new lon lat cache key.- Parameters:
longitude- the longitudelatitude- the latitudeorigCty- the orig ctyallowedDistanceMargin- the allowed distance margin
-
-
Method Detail
-
getLongitude
public float getLongitude()
Gets the longitude.- Returns:
- the longitude
-
getLatitude
public float getLatitude()
Gets the latitude.- Returns:
- the latitude
-
getAllowedDistanceMargin
public int getAllowedDistanceMargin()
Gets the allowed distance margin.- Returns:
- the allowed distance margin
-
getOrigCty
public String getOrigCty()
Gets the orig cty.- Returns:
- the orig cty
-
-