Package com.sgs.common.database
Enum Commodity.UnitDisplayMode
- java.lang.Object
-
- java.lang.Enum<Commodity.UnitDisplayMode>
-
- com.sgs.common.database.Commodity.UnitDisplayMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Commodity.UnitDisplayMode>
- Enclosing class:
- Commodity
public static enum Commodity.UnitDisplayMode extends java.lang.Enum<Commodity.UnitDisplayMode>
The display mode for PO/SO in Control Center. If set to specific, only units withUnitCommodity
conversions will be considered- Author:
- SGSystems
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt()
static Commodity.UnitDisplayMode[]
getValues()
static Commodity.UnitDisplayMode
parse(int type)
static Commodity.UnitDisplayMode
parse(java.lang.String type)
java.lang.String
toString()
static Commodity.UnitDisplayMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Commodity.UnitDisplayMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final Commodity.UnitDisplayMode ALL
-
SPECIFIC
public static final Commodity.UnitDisplayMode SPECIFIC
-
-
Method Detail
-
values
public static Commodity.UnitDisplayMode[] 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.UnitDisplayMode c : Commodity.UnitDisplayMode.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.UnitDisplayMode 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
-
getValues
public static Commodity.UnitDisplayMode[] getValues()
-
parse
public static Commodity.UnitDisplayMode parse(int type)
-
parse
public static Commodity.UnitDisplayMode parse(java.lang.String type)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Commodity.UnitDisplayMode>
-
getInt
public int getInt()
-
-