Enum 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 with UnitCommodity conversions will be considered
    Author:
    SGSystems
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getInt

        public int getInt()