All Downloads are FREE. Search and download functionalities are using the official Maven repository.

t.21.120.2.source-code.LegCurlExerciseName Maven / Gradle / Ivy

There is a newer version: 21.141.0
Show newest version
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2023 Garmin International, Inc.
// Licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol License; you
// may not use this file except in compliance with the Flexible and Interoperable Data
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING****  This file is auto-generated!  Do NOT edit this file.
// Profile Version = 21.120Release
// Tag = production/release/21.120.00-0-g2d77811
/////////////////////////////////////////////////////////////////////////////////////////////


package com.garmin.fit;

import java.util.HashMap;
import java.util.Map;

public class LegCurlExerciseName  {
    public static final int LEG_CURL = 0;
    public static final int WEIGHTED_LEG_CURL = 1;
    public static final int GOOD_MORNING = 2;
    public static final int SEATED_BARBELL_GOOD_MORNING = 3;
    public static final int SINGLE_LEG_BARBELL_GOOD_MORNING = 4;
    public static final int SINGLE_LEG_SLIDING_LEG_CURL = 5;
    public static final int SLIDING_LEG_CURL = 6;
    public static final int SPLIT_BARBELL_GOOD_MORNING = 7;
    public static final int SPLIT_STANCE_EXTENSION = 8;
    public static final int STAGGERED_STANCE_GOOD_MORNING = 9;
    public static final int SWISS_BALL_HIP_RAISE_AND_LEG_CURL = 10;
    public static final int ZERCHER_GOOD_MORNING = 11;
    public static final int INVALID = Fit.UINT16_INVALID;

    private static final Map stringMap;

    static {
        stringMap = new HashMap();
        stringMap.put(LEG_CURL, "LEG_CURL");
        stringMap.put(WEIGHTED_LEG_CURL, "WEIGHTED_LEG_CURL");
        stringMap.put(GOOD_MORNING, "GOOD_MORNING");
        stringMap.put(SEATED_BARBELL_GOOD_MORNING, "SEATED_BARBELL_GOOD_MORNING");
        stringMap.put(SINGLE_LEG_BARBELL_GOOD_MORNING, "SINGLE_LEG_BARBELL_GOOD_MORNING");
        stringMap.put(SINGLE_LEG_SLIDING_LEG_CURL, "SINGLE_LEG_SLIDING_LEG_CURL");
        stringMap.put(SLIDING_LEG_CURL, "SLIDING_LEG_CURL");
        stringMap.put(SPLIT_BARBELL_GOOD_MORNING, "SPLIT_BARBELL_GOOD_MORNING");
        stringMap.put(SPLIT_STANCE_EXTENSION, "SPLIT_STANCE_EXTENSION");
        stringMap.put(STAGGERED_STANCE_GOOD_MORNING, "STAGGERED_STANCE_GOOD_MORNING");
        stringMap.put(SWISS_BALL_HIP_RAISE_AND_LEG_CURL, "SWISS_BALL_HIP_RAISE_AND_LEG_CURL");
        stringMap.put(ZERCHER_GOOD_MORNING, "ZERCHER_GOOD_MORNING");
    }


    /**
     * Retrieves the String Representation of the Value
     * @param value The enum constant
     * @return The name of this enum contsant
     */
    public static String getStringFromValue( Integer value ) {
        if( stringMap.containsKey( value ) ) {
            return stringMap.get( value );
        }

        return "";
    }

    /**
     * Returns the enum constant with the specified name.
     * @param value The enum string value
     * @return The enum constant or INVALID if unknown
     */
    public static Integer getValueFromString( String value ) {
        for( Map.Entry entry : stringMap.entrySet() ) {
            if( entry.getValue().equals( value ) ) {
                return entry.getKey();
            }
        }

        return INVALID;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy