public enum BeepDuration extends Enum<BeepDuration>
Enum Constant and Description |
---|
Long
Long duration
|
Longest
Longest duration
|
Short
Short duration
|
Shortest
Shortest duration
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static BeepDuration |
valueOf(int value) |
static BeepDuration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BeepDuration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BeepDuration Shortest
public static final BeepDuration Short
public static final BeepDuration Long
public static final BeepDuration Longest
public static BeepDuration[] values()
for (BeepDuration c : BeepDuration.values()) System.out.println(c);
public static BeepDuration 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 int getValue()
public static BeepDuration valueOf(int value)