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)Returns the enum constant matching the given string, ornullif no match is found.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
@SerializedName("Case") public static final UnitOfMeasureType CASECase or Carton
-
FOOT
@SerializedName("Foot") public static final UnitOfMeasureType FOOTFoot
-
UK_GALLON
@SerializedName("UKGallon") public static final UnitOfMeasureType UK_GALLONGallon (UK)
-
US_GALLON
@SerializedName("USGallon") public static final UnitOfMeasureType US_GALLONGallon (US)
-
GRAM
@SerializedName("Gram") public static final UnitOfMeasureType GRAMGram
-
INCH
@SerializedName("Inch") public static final UnitOfMeasureType INCHInch
-
KILOGRAM
@SerializedName("Kilogram") public static final UnitOfMeasureType KILOGRAMKilogram
-
POUND
@SerializedName("Pound") public static final UnitOfMeasureType POUNDPound
-
METER
@SerializedName("Meter") public static final UnitOfMeasureType METERMeter
-
CENTIMETRE
@SerializedName("Centimetre") public static final UnitOfMeasureType CENTIMETRECentimetre
-
LITRE
@SerializedName("Litre") public static final UnitOfMeasureType LITRELitre
-
CENTILITRE
@SerializedName("Centilitre") public static final UnitOfMeasureType CENTILITRECentilitre
-
OUNCE
@SerializedName("Ounce") public static final UnitOfMeasureType OUNCEOunce
-
QUART
@SerializedName("Quart") public static final UnitOfMeasureType QUARTQuart
-
PINT
@SerializedName("Pint") public static final UnitOfMeasureType PINTPint
-
MILE
@SerializedName("Mile") public static final UnitOfMeasureType MILEMile
-
KILOMETRE
@SerializedName("Kilometre") public static final UnitOfMeasureType KILOMETREKilometre
-
YARD
@SerializedName("Yard") public static final UnitOfMeasureType YARDYard
-
OTHER
@SerializedName("Other") public static final UnitOfMeasureType OTHEROther 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)
Returns the enum constant matching the given string, ornullif no match is found.- Parameters:
v- string value- Returns:
- the UnitOfMeasureType, or
nullif no match is found.
-
-