Package com.sgs.common.database
Enum Formula.TareMode
- java.lang.Object
-
- java.lang.Enum<Formula.TareMode>
-
- com.sgs.common.database.Formula.TareMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Formula.TareMode>
- Enclosing class:
- Formula
public static enum Formula.TareMode extends java.lang.Enum<Formula.TareMode>
The tare mode, pertains to product formulas only Calculated adds all the packaging item weights up Prompt asks the operator to weigh the container Preset takes the preset key value set by the tare value Key Entered works like prompt but without the use of a scale- Author:
- SGSystems
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CALCULATED
KEY_ENTERED
PRESET
PROMPT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInt()
static Formula.TareMode
parse(int type)
java.lang.String
toString()
static Formula.TareMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Formula.TareMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CALCULATED
public static final Formula.TareMode CALCULATED
-
PROMPT
public static final Formula.TareMode PROMPT
-
PRESET
public static final Formula.TareMode PRESET
-
KEY_ENTERED
public static final Formula.TareMode KEY_ENTERED
-
-
Method Detail
-
values
public static Formula.TareMode[] 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 (Formula.TareMode c : Formula.TareMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Formula.TareMode 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 Formula.TareMode parse(int type)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Formula.TareMode>
-
getInt
public int getInt()
-
-