public enum BeepIndicator extends Enum<BeepIndicator>
| Enum Constant and Description |
|---|
none |
once |
threeTimes |
twice |
| Modifier and Type | Method and Description |
|---|---|
static BeepIndicator |
fromValue(byte value)
Gets a beep indicator from its byte value.
|
static BeepIndicator |
fromValue(int value)
Gets a beep indicator from its integer value.
|
byte |
getCode()
Gets the byte value of the beep indicator.
|
static String[] |
names()
Returns an array containing the names of the beep indicator constants.
|
String |
toString()
Returns the string message of the beep indicator.
|
byte |
value()
Gets the byte value of the beep indicator.
|
static BeepIndicator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BeepIndicator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BeepIndicator none
public static final BeepIndicator once
public static final BeepIndicator twice
public static final BeepIndicator threeTimes
public static BeepIndicator[] values()
for (BeepIndicator c : BeepIndicator.values()) System.out.println(c);
public static BeepIndicator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte value()
public byte getCode()
public String toString()
toString in class Enum<BeepIndicator>public static BeepIndicator fromValue(byte value) throws IllegalArgumentException
value - The byte value of the beep indicator.IllegalArgumentException - If the byte value does not correspond to any beep indicator.public static BeepIndicator fromValue(int value) throws IllegalArgumentException
value - The integer value of the beep indicator.IllegalArgumentException - If the integer value does not correspond to any beep indicator.public static String[] names()