public enum VibratorIndicator extends java.lang.Enum<VibratorIndicator>
| Modifier and Type | Method and Description |
|---|---|
static VibratorIndicator |
fromValue(byte value)
Returns the VibratorIndicator enum corresponding to the given byte value.
|
static VibratorIndicator |
fromValue(int value)
Returns the VibratorIndicator enum corresponding to the given integer value.
|
byte |
getCode()
Returns the byte code of the vibrator indicator.
|
static java.lang.String[] |
names()
Returns an array containing the names of the enum constants.
|
java.lang.String |
toString()
Returns the string representation of the vibrator indicator.
|
byte |
value()
Returns the byte value of the vibrator indicator.
|
static VibratorIndicator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VibratorIndicator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VibratorIndicator disable
public static final VibratorIndicator enable
public static VibratorIndicator[] values()
for (VibratorIndicator c : VibratorIndicator.values()) System.out.println(c);
public static VibratorIndicator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte value()
public byte getCode()
public java.lang.String toString()
toString in class java.lang.Enum<VibratorIndicator>public static VibratorIndicator fromValue(byte value) throws java.lang.IllegalArgumentException
value - The byte value to match against the VibratorIndicator enum values.java.lang.IllegalArgumentException - If the given byte value does not match any VibratorIndicator enum value.public static VibratorIndicator fromValue(int value) throws java.lang.IllegalArgumentException
value - The integer value to match against the VibratorIndicator enum values.java.lang.IllegalArgumentException - If the given integer value does not match any VibratorIndicator enum value.public static java.lang.String[] names()