public enum GoodReadIndicator extends Enum<GoodReadIndicator>
| Enum Constant and Description |
|---|
beeper |
beeperVibrator |
none |
vibrator |
| Modifier and Type | Method and Description |
|---|---|
static GoodReadIndicator |
fromValue(byte value)
Gets a good read indicator from its byte value.
|
byte |
getCode()
Gets the byte value of the good read indicator.
|
static String[] |
names()
Returns an array containing the names of the good read indicator constants.
|
String |
toString()
Returns the string message of the good read indicator.
|
static GoodReadIndicator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GoodReadIndicator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GoodReadIndicator none
public static final GoodReadIndicator beeper
public static final GoodReadIndicator vibrator
public static final GoodReadIndicator beeperVibrator
public static GoodReadIndicator[] values()
for (GoodReadIndicator c : GoodReadIndicator.values()) System.out.println(c);
public static GoodReadIndicator 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 getCode()
public String toString()
toString in class Enum<GoodReadIndicator>public static GoodReadIndicator fromValue(byte value) throws IllegalArgumentException
value - The byte value of the good read indicator.IllegalArgumentException - If the byte value does not correspond to any good read indicator.public static String[] names()