- java.lang.Object
-
- org.arakhne.afc.gis.location.AbstractGeoLocation
-
- All Implemented Interfaces:
Comparable<GeoLocation>,GeoLocation
- Direct Known Subclasses:
GeoLocationArea,GeoLocationNowhere,GeoLocationPoint,GeoLocationPointList
public abstract class AbstractGeoLocation extends Object implements GeoLocation
Abstract implementation of a GeoLocation.- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:53
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.gis
- Maven Artifact Id:
- giscore
-
-
Constructor Summary
Constructors Constructor Description AbstractGeoLocation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(GeoLocation location)booleanequals(Object location)Replies if the specified location is equals to this one.abstract inthashCode()StringtoString()Replies the string representation of the geo-location.UUIDtoUUID()Replies the UUID of the geo-location.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.gis.location.GeoLocation
toBounds2D, toGeodesicPosition, toGeoId
-
-
-
-
Method Detail
-
toString
@Pure public final String toString()
Description copied from interface:GeoLocationReplies the string representation of the geo-location.- Specified by:
toStringin interfaceGeoLocation- Overrides:
toStringin classObject- Returns:
- the string representation of this location
-
toUUID
@Pure public final UUID toUUID()
Description copied from interface:GeoLocationReplies the UUID of the geo-location.- Specified by:
toUUIDin interfaceGeoLocation- Returns:
- the UUID of this location
-
compareTo
@Pure public final int compareTo(GeoLocation location)
- Specified by:
compareToin interfaceComparable<GeoLocation>
-
equals
@Pure public final boolean equals(Object location)
Replies if the specified location is equals to this one.- Specified by:
equalsin interfaceGeoLocation- Overrides:
equalsin classObject- Parameters:
location- the location to test.- Returns:
trueif the given location is equal to this location, otherwisefalse
-
-