public enum UnitOfMeasure extends Enum<UnitOfMeasure> implements IStringConstant
| Enum Constant and Description |
|---|
CaseOrCarton |
Gallons |
ImperialGallons |
Kilograms |
Liters |
NoFuelPurchased |
OtherOrUnknown |
Ounces |
Pounds |
Quarts |
Units |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
String |
getValue() |
static UnitOfMeasure |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitOfMeasure[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitOfMeasure CaseOrCarton
public static final UnitOfMeasure Gallons
public static final UnitOfMeasure Kilograms
public static final UnitOfMeasure Liters
public static final UnitOfMeasure OtherOrUnknown
public static final UnitOfMeasure Pounds
public static final UnitOfMeasure Quarts
public static final UnitOfMeasure Units
public static final UnitOfMeasure Ounces
public static final UnitOfMeasure ImperialGallons
public static final UnitOfMeasure NoFuelPurchased
public static UnitOfMeasure[] values()
for (UnitOfMeasure c : UnitOfMeasure.values()) System.out.println(c);
public static UnitOfMeasure 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 String getValue()
getValue in interface IStringConstantpublic byte[] getBytes()
getBytes in interface IStringConstantCopyright © 2024. All rights reserved.