Enum ManualTriggerAction.Approval

    • Method Detail

      • values

        public static ManualTriggerAction.Approval[] 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 (ManualTriggerAction.Approval c : ManualTriggerAction.Approval.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ManualTriggerAction.Approval valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getApprovals

        @Deprecated
        public ManualTriggerAction.HighLow getApprovals​(net.sf.json.JSONObject res)
        Deprecated.
        Finds the highest and lowest approval value of the approval's type for the specified change.
        Parameters:
        res - the change.
        Returns:
        the highest and lowest value. Or 0,0 if there are no values.
      • getApprovals

        public ManualTriggerAction.HighLow getApprovals​(net.sf.json.JSONObject res,
                                                        int patchSetNumber)
        Finds the highest and lowest approval value of the approval's type for the specified change.
        Parameters:
        res - the change.
        patchSetNumber - the patch set number.
        Returns:
        the highest and lowest value. Or 0,0 if there are no values.