public enum FormFactor extends java.lang.Enum<FormFactor>
| Enum Constant and Description |
|---|
UNKNOWN |
USB_A_KEYCHAIN |
USB_A_NANO |
USB_C_KEYCHAIN |
USB_C_LIGHTNING |
USB_C_NANO |
| Modifier and Type | Field and Description |
|---|---|
byte |
value |
| Modifier and Type | Method and Description |
|---|---|
static FormFactor |
valueOf(byte formFactor) |
static FormFactor |
valueOf(byte[] formFactor) |
static FormFactor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FormFactor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FormFactor UNKNOWN
public static final FormFactor USB_A_KEYCHAIN
public static final FormFactor USB_A_NANO
public static final FormFactor USB_C_KEYCHAIN
public static final FormFactor USB_C_NANO
public static final FormFactor USB_C_LIGHTNING
public static FormFactor[] values()
for (FormFactor c : FormFactor.values()) System.out.println(c);
public static FormFactor 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 static FormFactor valueOf(byte formFactor)
public static FormFactor valueOf(byte[] formFactor)