public enum UpcType extends Enum<UpcType>
| Enum Constant and Description |
|---|
_UNKNOWN
Unknown values will be mapped by this enum member
|
UPC_2 |
UPC_5 |
UPC_A |
UPC_B |
UPC_C |
UPC_D |
UPC_E |
| Modifier and Type | Method and Description |
|---|---|
static UpcType |
constructFromString(String toConvert)
Returns the enum member associated with the given string value.
|
static UpcType |
fromString(String toConvert)
Returns the enum member associated with the given string value.
|
String |
toString()
Get string representation of this enum.
|
static List<String> |
toValue(List<UpcType> toConvert)
Convert list of UpcType values to list of string values.
|
String |
value()
Returns the string value associated with the enum member.
|
static UpcType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpcType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpcType UPC_A
public static final UpcType UPC_B
public static final UpcType UPC_C
public static final UpcType UPC_D
public static final UpcType UPC_E
public static final UpcType UPC_2
public static final UpcType UPC_5
public static final UpcType _UNKNOWN
public static UpcType[] values()
for (UpcType c : UpcType.values()) System.out.println(c);
public static UpcType 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 static UpcType constructFromString(String toConvert) throws IOException
toConvert - String value to get enum member.IOException - when provided value is not mapped to any enum member.public static UpcType fromString(String toConvert)
toConvert - String value to get enum member.public String value()
public String toString()
Copyright © 2025. All rights reserved.