t.21.120.2.source-code.SupportedExdScreenLayouts 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;
import java.util.HashMap;
import java.util.Map;
public class SupportedExdScreenLayouts {
public static final long FULL_SCREEN = 0x00000001;
public static final long HALF_VERTICAL = 0x00000002;
public static final long HALF_HORIZONTAL = 0x00000004;
public static final long HALF_VERTICAL_RIGHT_SPLIT = 0x00000008;
public static final long HALF_HORIZONTAL_BOTTOM_SPLIT = 0x00000010;
public static final long FULL_QUARTER_SPLIT = 0x00000020;
public static final long HALF_VERTICAL_LEFT_SPLIT = 0x00000040;
public static final long HALF_HORIZONTAL_TOP_SPLIT = 0x00000080;
public static final long INVALID = Fit.UINT32Z_INVALID;
private static final Map stringMap;
static {
stringMap = new HashMap();
stringMap.put(FULL_SCREEN, "FULL_SCREEN");
stringMap.put(HALF_VERTICAL, "HALF_VERTICAL");
stringMap.put(HALF_HORIZONTAL, "HALF_HORIZONTAL");
stringMap.put(HALF_VERTICAL_RIGHT_SPLIT, "HALF_VERTICAL_RIGHT_SPLIT");
stringMap.put(HALF_HORIZONTAL_BOTTOM_SPLIT, "HALF_HORIZONTAL_BOTTOM_SPLIT");
stringMap.put(FULL_QUARTER_SPLIT, "FULL_QUARTER_SPLIT");
stringMap.put(HALF_VERTICAL_LEFT_SPLIT, "HALF_VERTICAL_LEFT_SPLIT");
stringMap.put(HALF_HORIZONTAL_TOP_SPLIT, "HALF_HORIZONTAL_TOP_SPLIT");
}
/**
* Retrieves the String Representation of the Value
* @param value The enum constant
* @return The name of this enum contsant
*/
public static String getStringFromValue( Long 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 Long getValueFromString( String value ) {
for( Map.Entry entry : stringMap.entrySet() ) {
if( entry.getValue().equals( value ) ) {
return entry.getKey();
}
}
return INVALID;
}
}