Package de.hirola.sportslibrary.model
Class MovementType
- java.lang.Object
-
- de.hirola.kintojava.model.KintoObject
-
- de.hirola.sportslibrary.PersistentObject
-
- de.hirola.sportslibrary.model.MovementType
-
- All Implemented Interfaces:
de.hirola.kintojava.model.KintoModel
public class MovementType extends PersistentObject
Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. Object for managing movement types. The user can make his own settings. When you start the app for the first time, some movement types are imported into the data store using JSON.- Since:
- 1.1.1
- Author:
- Michael Schmidt (Hirola)
-
-
Constructor Summary
Constructors Constructor Description MovementType()Default constructor for reflection.MovementType(String key, String stringForKey, String colorKeyString, double speed, double pace)Creates a movement type object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetColorKeyString()Get the color string for the token of the movement type.List<String>getIdentityAttributeNames()Get a list of all (persistent) attribute names of the objectStringgetKey()Get the token for the movement type.doublegetPace()Get the pace for the movement type.doublegetSpeed()Get the speed for the movement type.StringgetStringForKey()Get the token for the movement type.inthashCode()voidsetColorKeyString(String colorKeyString)Set the color for the token.voidsetPace(double pace)Set the pace for the speed of the movement type.voidsetSpeed(double speed)Set the speed for the movement type.
-
-
-
Method Detail
-
getKey
public String getKey()
Get the token for the movement type.- Returns:
- Token for the movement type
-
getStringForKey
public String getStringForKey()
Get the token for the movement type.- Returns:
- Token for the movement type
-
getColorKeyString
public String getColorKeyString()
Get the color string for the token of the movement type.- Returns:
- Color string for the token
-
setColorKeyString
public void setColorKeyString(String colorKeyString)
Set the color for the token.- Parameters:
colorKeyString- of token
-
getSpeed
public double getSpeed()
Get the speed for the movement type.- Returns:
- Token for the movement type
-
setSpeed
public void setSpeed(double speed)
Set the speed for the movement type.- Parameters:
speed- of movement type
-
getPace
public double getPace()
Get the pace for the movement type.- Returns:
- Pace for the movement type
-
setPace
public void setPace(double pace)
Set the pace for the speed of the movement type.- Parameters:
pace- of movement type
-
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
-
-