Package classes
Enum Object_Product.Other_ProductType
- java.lang.Object
-
- java.lang.Enum<Object_Product.Other_ProductType>
-
- classes.Object_Product.Other_ProductType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Object_Product.Other_ProductType>
- Enclosing class:
- Object_Product
public static enum Object_Product.Other_ProductType extends java.lang.Enum<Object_Product.Other_ProductType>
The recognized type of aObject_Product. At this time, non-wine products use the typeOTHER.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()static Object_Product.Other_ProductTypegetProductTypeFromString(java.lang.String wineType)static Object_Product.Other_ProductTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Object_Product.Other_ProductType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RED
public static final Object_Product.Other_ProductType RED
-
WHITE
public static final Object_Product.Other_ProductType WHITE
-
ROSE
public static final Object_Product.Other_ProductType ROSE
-
SPARKLING
public static final Object_Product.Other_ProductType SPARKLING
-
FORTIFIED
public static final Object_Product.Other_ProductType FORTIFIED
-
OTHER
public static final Object_Product.Other_ProductType OTHER
-
-
Method Detail
-
values
public static Object_Product.Other_ProductType[] 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 (Object_Product.Other_ProductType c : Object_Product.Other_ProductType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Object_Product.Other_ProductType 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
-
getName
public java.lang.String getName()
-
getProductTypeFromString
public static Object_Product.Other_ProductType getProductTypeFromString(java.lang.String wineType)
-
-