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

t.21.120.2.source-code.ExdDisplayType 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;


public enum ExdDisplayType  {
    NUMERICAL((short)0),
    SIMPLE((short)1),
    GRAPH((short)2),
    BAR((short)3),
    CIRCLE_GRAPH((short)4),
    VIRTUAL_PARTNER((short)5),
    BALANCE((short)6),
    STRING_LIST((short)7),
    STRING((short)8),
    SIMPLE_DYNAMIC_ICON((short)9),
    GAUGE((short)10),
    INVALID((short)255);

    protected short value;

    private ExdDisplayType(short value) {
        this.value = value;
    }

    public static ExdDisplayType getByValue(final Short value) {
        for (final ExdDisplayType type : ExdDisplayType.values()) {
            if (value == type.value)
                return type;
        }

        return ExdDisplayType.INVALID;
    }

    /**
     * Retrieves the String Representation of the Value
     * @param value The enum constant
     * @return The name of this enum constant
     */
    public static String getStringFromValue( ExdDisplayType value ) {
        return value.name();
    }

    public short getValue() {
        return value;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy