Enum 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
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<Formula.TareMode>
      • getInt

        public int getInt()