Package com.adyen.model.nexo
Enum UnitOfMeasureType
- java.lang.Object
-
- java.lang.Enum<UnitOfMeasureType>
-
- com.adyen.model.nexo.UnitOfMeasureType
-
- All Implemented Interfaces:
Serializable,Comparable<UnitOfMeasureType>
public enum UnitOfMeasureType extends Enum<UnitOfMeasureType>
Java class for UnitOfMeasureType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="UnitOfMeasureType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Case"/> <enumeration value="Foot"/> <enumeration value="UKGallon"/> <enumeration value="USGallon"/> <enumeration value="Gram"/> <enumeration value="Inch"/> <enumeration value="Kilogram"/> <enumeration value="Pound"/> <enumeration value="Meter"/> <enumeration value="Centimetre"/> <enumeration value="Litre"/> <enumeration value="Centilitre"/> <enumeration value="Ounce"/> <enumeration value="Quart"/> <enumeration value="Pint"/> <enumeration value="Mile"/> <enumeration value="Kilometre"/> <enumeration value="Yard"/> <enumeration value="Other"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CASECase or CartonCENTILITRECentilitreCENTIMETRECentimetreFOOTFootGRAMGramINCHInchKILOGRAMKilogramKILOMETREKilometreLITRELitreMETERMeterMILEMileOTHEROther unit than the previous oneOUNCEOuncePINTPintPOUNDPoundQUARTQuartUK_GALLONGallon (UK)US_GALLONGallon (US)YARDYard
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnitOfMeasureTypefromValue(String v)From value unit of measure type.Stringvalue()Value string.static UnitOfMeasureTypevalueOf(String name)Returns the enum constant of this type with the specified name.static UnitOfMeasureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CASE
public static final UnitOfMeasureType CASE
Case or Carton
-
FOOT
public static final UnitOfMeasureType FOOT
Foot
-
UK_GALLON
public static final UnitOfMeasureType UK_GALLON
Gallon (UK)
-
US_GALLON
public static final UnitOfMeasureType US_GALLON
Gallon (US)
-
GRAM
public static final UnitOfMeasureType GRAM
Gram
-
INCH
public static final UnitOfMeasureType INCH
Inch
-
KILOGRAM
public static final UnitOfMeasureType KILOGRAM
Kilogram
-
POUND
public static final UnitOfMeasureType POUND
Pound
-
METER
public static final UnitOfMeasureType METER
Meter
-
CENTIMETRE
public static final UnitOfMeasureType CENTIMETRE
Centimetre
-
LITRE
public static final UnitOfMeasureType LITRE
Litre
-
CENTILITRE
public static final UnitOfMeasureType CENTILITRE
Centilitre
-
OUNCE
public static final UnitOfMeasureType OUNCE
Ounce
-
QUART
public static final UnitOfMeasureType QUART
Quart
-
PINT
public static final UnitOfMeasureType PINT
Pint
-
MILE
public static final UnitOfMeasureType MILE
Mile
-
KILOMETRE
public static final UnitOfMeasureType KILOMETRE
Kilometre
-
YARD
public static final UnitOfMeasureType YARD
Yard
-
OTHER
public static final UnitOfMeasureType OTHER
Other unit than the previous one
-
-
Method Detail
-
values
public static UnitOfMeasureType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UnitOfMeasureType c : UnitOfMeasureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnitOfMeasureType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
Value string.- Returns:
- the string
-
fromValue
public static UnitOfMeasureType fromValue(String v)
From value unit of measure type.- Parameters:
v- the v- Returns:
- the unit of measure type
-
-