Class TrainingType

  • All Implemented Interfaces:
    de.hirola.kintojava.model.KintoModel

    public class TrainingType
    extends PersistentObject
    Copyright 2021 by Michael Schmidt, Hirola Consulting This software us licensed under the AGPL-3.0 or later. An object represents the type of training, currently bike and running training.
    Since:
    1.1.1
    Author:
    Michael Schmidt (Hirola)
    • Constructor Detail

      • TrainingType

        public TrainingType()
        Default constructor for reflection.
      • TrainingType

        public TrainingType​(@NotNull
                            @NotNull String name,
                            @Nullable
                            @Nullable String remarks,
                            @Nullable
                            @Nullable String imageName,
                            double speed)
        Create a type of training.
        Parameters:
        name - of type
        imageName - of type
        remarks - of type
        speed - of type
    • Method Detail

      • getName

        public String getName()
        Get the name of the training type.
        Returns:
        The name of training type
      • setName

        public void setName​(String name)
        Set the last name of the training type.
        Parameters:
        name - of the training type.
      • getImageName

        public String getImageName()
        Get the name of the image for the training type.
        Returns:
        The name of image
      • setImageName

        public void setImageName​(String imageName)
        Set name of the image for the training type.
        Parameters:
        imageName - for the training type
      • getRemarks

        public String getRemarks()
        Get remarks of the training type.
        Returns:
        The remarks of the training type
      • setRemarks

        public void setRemarks​(String remarks)
        Set the remarks of the training type.
        Parameters:
        remarks - of the training type
      • getSpeed

        public double getSpeed()
        Get the speed of the training type.
        Returns:
        The speed of the training type
      • setSpeed

        public void setSpeed​(double speed)
        Set the speed for the training type. Approximate speed of the training type in km/h. The type can thus be suggested on the basis of recorded training sessions.
        Parameters:
        speed - of the training
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class de.hirola.kintojava.model.KintoObject
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class de.hirola.kintojava.model.KintoObject