t.21.120.2.source-code.Spo2MeasurementType 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
/////////////////////////////////////////////////////////////////////////////////////////////
// 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 Spo2MeasurementType {
OFF_WRIST((short)0),
SPOT_CHECK((short)1),
CONTINUOUS_CHECK((short)2),
PERIODIC((short)3),
INVALID((short)255);
protected short value;
private Spo2MeasurementType(short value) {
this.value = value;
}
public static Spo2MeasurementType getByValue(final Short value) {
for (final Spo2MeasurementType type : Spo2MeasurementType.values()) {
if (value == type.value)
return type;
}
return Spo2MeasurementType.INVALID;
}
/**
* Retrieves the String Representation of the Value
* @param value The enum constant
* @return The name of this enum constant
*/
public static String getStringFromValue( Spo2MeasurementType value ) {
return value.name();
}
public short getValue() {
return value;
}
}