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