public enum ConnectionIndicator extends java.lang.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.
|
int |
getCode()
Gets the byte value of the connection indicator.
|
static java.lang.String[] |
names()
Returns an array containing the names of the connection indicator constants.
|
java.lang.String |
toString()
Returns the string message of the connection indicator.
|
int |
value()
Gets the byte value of the connection indicator.
|
static ConnectionIndicator |
valueOf(java.lang.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(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 int value()
public int getCode()
public java.lang.String toString()
toString in class java.lang.Enum<ConnectionIndicator>public static ConnectionIndicator fromValue(byte value) throws java.lang.IllegalArgumentException
value - The byte value of the connection indicator.java.lang.IllegalArgumentException - If the byte value does not correspond to any connection indicator.public static java.lang.String[] names()