Package org.jenkinsci.plugins.p4.review
Enum ApproveState
- java.lang.Object
-
- java.lang.Enum<ApproveState>
-
- org.jenkinsci.plugins.p4.review.ApproveState
-
- All Implemented Interfaces:
Serializable
,Comparable<ApproveState>
public enum ApproveState extends Enum<ApproveState>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getId()
boolean
isCommit()
static ApproveState
parse(String value)
static ApproveState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ApproveState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REVIEW
public static final ApproveState REVIEW
-
REVISION
public static final ApproveState REVISION
-
APPROVED
public static final ApproveState APPROVED
-
COMMIT
public static final ApproveState COMMIT
-
REJECTED
public static final ApproveState REJECTED
-
ARCHIVED
public static final ApproveState ARCHIVED
-
VOTE_UP
public static final ApproveState VOTE_UP
-
VOTE_DOWN
public static final ApproveState VOTE_DOWN
-
-
Method Detail
-
values
public static ApproveState[] 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 (ApproveState c : ApproveState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApproveState 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 nameNullPointerException
- if the argument is null
-
getId
public String getId()
-
getDescription
public String getDescription()
-
isCommit
public boolean isCommit()
-
parse
public static ApproveState parse(String value)
-
-