Package com.sgs.common.database
Enum Commodity.DenominationType
- java.lang.Object
-
- java.lang.Enum<Commodity.DenominationType>
-
- com.sgs.common.database.Commodity.DenominationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Commodity.DenominationType>
- Enclosing class:
- Commodity
public static enum Commodity.DenominationType extends java.lang.Enum<Commodity.DenominationType>
How this good should be sold at a sales order level- Author:
- SGSystems
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt()
static Commodity.DenominationType
parse(int type)
static Commodity.DenominationType
parse(java.lang.String type)
java.lang.String
toString()
static Commodity.DenominationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Commodity.DenominationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Commodity.DenominationType NONE
-
WEIGHT
public static final Commodity.DenominationType WEIGHT
-
PACKS
public static final Commodity.DenominationType PACKS
-
-
Method Detail
-
values
public static Commodity.DenominationType[] 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 (Commodity.DenominationType c : Commodity.DenominationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Commodity.DenominationType 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
-
parse
public static Commodity.DenominationType parse(int type)
-
parse
public static Commodity.DenominationType parse(java.lang.String type)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Commodity.DenominationType>
-
getInt
public int getInt()
-
-