public enum HIDInterCharacter extends java.lang.Enum<HIDInterCharacter>
| Enum Constant and Description |
|---|
delay100ms |
delay10ms |
delay1ms |
delay20ms |
delay50ms |
delay5ms |
| Modifier and Type | Method and Description |
|---|---|
static HIDInterCharacter |
fromValue(int value)
Gets an inter-character delay from its byte value.
|
byte |
getCode()
Gets the byte value of the inter-character delay.
|
static java.lang.String[] |
names()
Returns an array containing the names of the inter-character delay constants.
|
java.lang.String |
toString()
Returns the string message of the inter-character delay.
|
byte |
value()
Gets the byte value of the inter-character delay.
|
static HIDInterCharacter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HIDInterCharacter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HIDInterCharacter delay1ms
public static final HIDInterCharacter delay5ms
public static final HIDInterCharacter delay10ms
public static final HIDInterCharacter delay20ms
public static final HIDInterCharacter delay50ms
public static final HIDInterCharacter delay100ms
public static HIDInterCharacter[] values()
for (HIDInterCharacter c : HIDInterCharacter.values()) System.out.println(c);
public static HIDInterCharacter 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 byte value()
public byte getCode()
public java.lang.String toString()
toString in class java.lang.Enum<HIDInterCharacter>public static HIDInterCharacter fromValue(int value) throws java.lang.IllegalArgumentException
value - The byte value of the inter-character delay.java.lang.IllegalArgumentException - If the byte value does not correspond to any inter-character delay.public static java.lang.String[] names()