Enum LedStatusType
- java.lang.Object
-
- java.lang.Enum<LedStatusType>
-
- berlin.yuna.tinkerforgesensor.model.LedStatusType
-
- All Implemented Interfaces:
Serializable,Comparable<LedStatusType>
public enum LedStatusType extends Enum<LedStatusType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LED_HEARTBEATLED_NONELED_OFFLED_ONLED_STATUS
-
Field Summary
Fields Modifier and Type Field Description intbit
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisLedOn(int value)static LedStatusTypeledStatusTypeOf(int bit)static LedStatusTypevalueOf(String name)Returns the enum constant of this type with the specified name.static LedStatusType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LED_NONE
public static final LedStatusType LED_NONE
-
LED_OFF
public static final LedStatusType LED_OFF
-
LED_ON
public static final LedStatusType LED_ON
-
LED_HEARTBEAT
public static final LedStatusType LED_HEARTBEAT
-
LED_STATUS
public static final LedStatusType LED_STATUS
-
-
Method Detail
-
values
public static LedStatusType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LedStatusType c : LedStatusType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LedStatusType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
ledStatusTypeOf
public static LedStatusType ledStatusTypeOf(int bit)
-
isLedOn
public static boolean isLedOn(int value)
-
-