public static enum Storefront.WeightUnit extends java.lang.Enum<Storefront.WeightUnit>
| Enum Constant and Description |
|---|
GRAMS
Metric system unit of mass.
|
KILOGRAMS
1 kilogram equals 1000 grams.
|
OUNCES
Imperial system unit of mass.
|
POUNDS
1 pound equals 16 ounces.
|
UNKNOWN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.WeightUnit |
fromGraphQl(java.lang.String value) |
java.lang.String |
toString() |
static Storefront.WeightUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storefront.WeightUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storefront.WeightUnit GRAMS
public static final Storefront.WeightUnit KILOGRAMS
public static final Storefront.WeightUnit OUNCES
public static final Storefront.WeightUnit POUNDS
public static final Storefront.WeightUnit UNKNOWN_VALUE
public static Storefront.WeightUnit[] values()
for (Storefront.WeightUnit c : Storefront.WeightUnit.values()) System.out.println(c);
public static Storefront.WeightUnit valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Storefront.WeightUnit fromGraphQl(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Storefront.WeightUnit>