Package com.google.gerrit.common.data
Enum PatchScript.DisplayMethod
- java.lang.Object
-
- java.lang.Enum<PatchScript.DisplayMethod>
-
- com.google.gerrit.common.data.PatchScript.DisplayMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<PatchScript.DisplayMethod>
- Enclosing class:
- PatchScript
public static enum PatchScript.DisplayMethod extends Enum<PatchScript.DisplayMethod>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PatchScript.DisplayMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static PatchScript.DisplayMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PatchScript.DisplayMethod NONE
-
DIFF
public static final PatchScript.DisplayMethod DIFF
-
IMG
public static final PatchScript.DisplayMethod IMG
-
-
Method Detail
-
values
public static PatchScript.DisplayMethod[] 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 (PatchScript.DisplayMethod c : PatchScript.DisplayMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PatchScript.DisplayMethod 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
-
-