Enum ManualTriggerAction.Approval
java.lang.Object
java.lang.Enum<ManualTriggerAction.Approval>
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.actions.manual.ManualTriggerAction.Approval
- All Implemented Interfaces:
Serializable,Comparable<ManualTriggerAction.Approval>
- Enclosing class:
- ManualTriggerAction
Represents a "vote"-type or Approval of a change in the JSON structure.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA Code Review Approval type Code-Review.A Verified Approval type Verified. -
Method Summary
Modifier and TypeMethodDescriptiongetApprovals(net.sf.json.JSONObject res) Deprecated.getApprovals(net.sf.json.JSONObject res, int patchSetNumber) Finds the highest and lowest approval value of the approval's type for the specified change.static ManualTriggerAction.ApprovalReturns the enum constant of this type with the specified name.static ManualTriggerAction.Approval[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CODE_REVIEW
A Code Review Approval type Code-Review. -
VERIFIED
A Verified Approval type Verified.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
getApprovals
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
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.
-