- 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 int
compareTo(GeoLocation location)
boolean
equals(Object location)
Replies if the specified location is equals to this one.abstract int
hashCode()
String
toString()
Replies the string representation of the geo-location.UUID
toUUID()
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:GeoLocation
Replies the string representation of the geo-location.- Specified by:
toString
in interfaceGeoLocation
- Overrides:
toString
in classObject
- Returns:
- the string representation of this location
-
toUUID
@Pure public final UUID toUUID()
Description copied from interface:GeoLocation
Replies the UUID of the geo-location.- Specified by:
toUUID
in interfaceGeoLocation
- Returns:
- the UUID of this location
-
compareTo
@Pure public final int compareTo(GeoLocation location)
- Specified by:
compareTo
in interfaceComparable<GeoLocation>
-
equals
@Pure public final boolean equals(Object location)
Replies if the specified location is equals to this one.- Specified by:
equals
in interfaceGeoLocation
- Overrides:
equals
in classObject
- Parameters:
location
- the location to test.- Returns:
true
if the given location is equal to this location, otherwisefalse
-
-