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