public static enum BarcodeID.BarcodeType extends Enum<BarcodeID.BarcodeType>
| Enum Constant and Description |
|---|
oneDimensional |
postal |
twoDimensional |
| Modifier and Type | Method and Description |
|---|---|
static BarcodeID.BarcodeType |
fromValue(byte value)
Gets a category from its byte value.
|
byte |
getCode()
Gets the byte value of the category.
|
String |
toString()
Returns the string message of the category.
|
byte |
value()
Gets the byte value of the category.
|
static BarcodeID.BarcodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BarcodeID.BarcodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BarcodeID.BarcodeType oneDimensional
public static final BarcodeID.BarcodeType twoDimensional
public static final BarcodeID.BarcodeType postal
public static BarcodeID.BarcodeType[] values()
for (BarcodeID.BarcodeType c : BarcodeID.BarcodeType.values()) System.out.println(c);
public static BarcodeID.BarcodeType 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 value()
public byte getCode()
public String toString()
toString in class Enum<BarcodeID.BarcodeType>public static BarcodeID.BarcodeType fromValue(byte value) throws IllegalArgumentException
value - The byte value of the category.IllegalArgumentException - If the byte value does not correspond to any category.