public enum UnitofMeasure extends Enum<UnitofMeasure> implements EnumValue
Enum Constant and Description |
---|
BARRELS |
BILLION_CUBIC_FEET |
BUSHELS |
GALLONS |
MEGAWATT_HOURS |
METRIC_TONS |
MILLION_BARRELS |
ONE_MILLION_BTU |
POUNDS |
TROY_OUNCES |
US_DOLLARS |
US_TONS |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(byte[] val) |
boolean |
equals(byte[] val,
int offset,
int length) |
byte[] |
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 BARRELS
public static final UnitofMeasure BILLION_CUBIC_FEET
public static final UnitofMeasure BUSHELS
public static final UnitofMeasure POUNDS
public static final UnitofMeasure GALLONS
public static final UnitofMeasure MILLION_BARRELS
public static final UnitofMeasure ONE_MILLION_BTU
public static final UnitofMeasure MEGAWATT_HOURS
public static final UnitofMeasure TROY_OUNCES
public static final UnitofMeasure METRIC_TONS
public static final UnitofMeasure US_TONS
public static final UnitofMeasure US_DOLLARS
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 boolean equals(byte[] val, int offset, int length)
Copyright © 2000–2022 EPAM Systems. All rights reserved.