public enum AccessoryType extends java.lang.Enum<AccessoryType>
Enum Constant and Description |
---|
CASH_DRAWER |
CASH_REGISTER |
PRINTER |
SCALE |
SCANNER |
Modifier and Type | Method and Description |
---|---|
static AccessoryType |
findByName(java.lang.String name) |
static AccessoryType |
findByValue(java.lang.String value) |
java.lang.String |
type() |
static AccessoryType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccessoryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessoryType CASH_DRAWER
public static final AccessoryType CASH_REGISTER
public static final AccessoryType PRINTER
public static final AccessoryType SCALE
public static final AccessoryType SCANNER
public static AccessoryType[] values()
for (AccessoryType c : AccessoryType.values()) System.out.println(c);
public static AccessoryType 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 java.lang.String type()
public static AccessoryType findByValue(java.lang.String value)
public static AccessoryType findByName(java.lang.String name)