Package com.chrt.api.types
Enum CargojsonWeightUnit.Value
- java.lang.Object
-
- java.lang.Enum<CargojsonWeightUnit.Value>
-
- com.chrt.api.types.CargojsonWeightUnit.Value
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CargojsonWeightUnit.Value>
- Enclosing class:
- CargojsonWeightUnit
public static enum CargojsonWeightUnit.Value extends java.lang.Enum<CargojsonWeightUnit.Value>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CargojsonWeightUnit.ValuevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CargojsonWeightUnit.Value[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KILOGRAM
public static final CargojsonWeightUnit.Value KILOGRAM
-
POUND
public static final CargojsonWeightUnit.Value POUND
-
UNKNOWN
public static final CargojsonWeightUnit.Value UNKNOWN
-
-
Method Detail
-
values
public static CargojsonWeightUnit.Value[] 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 (CargojsonWeightUnit.Value c : CargojsonWeightUnit.Value.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CargojsonWeightUnit.Value valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-