Package com.perforce.p4java.graph
Enum CommitAction
- java.lang.Object
-
- java.lang.Enum<CommitAction>
-
- com.perforce.p4java.graph.CommitAction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CommitAction>
public enum CommitAction extends java.lang.Enum<CommitAction>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getKey()
static CommitAction
parse(java.lang.String key)
static CommitAction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommitAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final CommitAction ADD
-
EDIT
public static final CommitAction EDIT
-
DELETE
public static final CommitAction DELETE
-
MERGE
public static final CommitAction MERGE
-
UNKNOWN
public static final CommitAction UNKNOWN
-
-
Method Detail
-
values
public static CommitAction[] 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 (CommitAction c : CommitAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommitAction 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 namejava.lang.NullPointerException
- if the argument is null
-
getKey
public java.lang.String getKey()
-
parse
public static CommitAction parse(java.lang.String key)
-
-