com.garmin.fit.Intensity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fit Show documentation
Show all versions of fit Show documentation
The Official Garmin FIT SDK
The newest version!
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2024 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.158.0Release
// Tag = production/release/21.158.0-0-gc9428aa
/////////////////////////////////////////////////////////////////////////////////////////////
package com.garmin.fit;
public enum Intensity {
ACTIVE((short)0),
REST((short)1),
WARMUP((short)2),
COOLDOWN((short)3),
RECOVERY((short)4),
INTERVAL((short)5),
OTHER((short)6),
INVALID((short)255);
protected short value;
private Intensity(short value) {
this.value = value;
}
public static Intensity getByValue(final Short value) {
for (final Intensity type : Intensity.values()) {
if (value == type.value)
return type;
}
return Intensity.INVALID;
}
/**
* Retrieves the String Representation of the Value
* @param value The enum constant
* @return The name of this enum constant
*/
public static String getStringFromValue( Intensity value ) {
return value.name();
}
public short getValue() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy