Package de.hirola.sportslibrary.model
Class LocationData
- java.lang.Object
-
- de.hirola.kintojava.model.KintoObject
-
- de.hirola.sportslibrary.PersistentObject
-
- de.hirola.sportslibrary.model.LocationData
-
- All Implemented Interfaces:
de.hirola.kintojava.model.KintoModel
public class LocationData extends PersistentObject
Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. An object to store location data.- Since:
- 1.1.1
- Author:
- Michael Schmidt (Hirola)
-
-
Constructor Summary
Constructors Constructor Description LocationData()Default constructor for reflection.LocationData(double latitude, double longitude)Creates a location object.LocationData(long timeStamp, String provider, double latitude, double longitude, double altitude, double speed)Creates a location object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<String>getIdentityAttributeNames()Get a list of all (persistent) attribute names of the objectinthashCode()
-
-
-
Constructor Detail
-
LocationData
public LocationData()
Default constructor for reflection.
-
LocationData
public LocationData(double latitude, double longitude)Creates a location object.- Parameters:
latitude- coordinate for the locationlongitude- coordinate for the location
-
LocationData
public LocationData(long timeStamp, String provider, double latitude, double longitude, double altitude, double speed)Creates a location object.- Parameters:
timeStamp- of the locationprovider- source of the locationlatitude- coordinate for the locationlongitude- coordinate for the locationaltitude- of the locationspeed- of the location
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classde.hirola.kintojava.model.KintoObject
-
hashCode
public int hashCode()
- Overrides:
hashCodein classde.hirola.kintojava.model.KintoObject
-
getIdentityAttributeNames
public List<String> getIdentityAttributeNames()
Description copied from class:PersistentObjectGet a list of all (persistent) attribute names of the object- Specified by:
getIdentityAttributeNamesin classPersistentObject- Returns:
- A list of all (persistent) attribute names of the object
-
-