Enum GeneralPreferencesInfo.DownloadCommand
- java.lang.Object
-
- java.lang.Enum<GeneralPreferencesInfo.DownloadCommand>
-
- com.google.gerrit.extensions.client.GeneralPreferencesInfo.DownloadCommand
-
- All Implemented Interfaces:
Serializable
,Comparable<GeneralPreferencesInfo.DownloadCommand>
- Enclosing class:
- GeneralPreferencesInfo
public static enum GeneralPreferencesInfo.DownloadCommand extends Enum<GeneralPreferencesInfo.DownloadCommand>
Preferred method to download a change.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BRANCH
CHECKOUT
CHERRY_PICK
FORMAT_PATCH
PULL
RESET
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeneralPreferencesInfo.DownloadCommand
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeneralPreferencesInfo.DownloadCommand[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PULL
public static final GeneralPreferencesInfo.DownloadCommand PULL
-
CHECKOUT
public static final GeneralPreferencesInfo.DownloadCommand CHECKOUT
-
CHERRY_PICK
public static final GeneralPreferencesInfo.DownloadCommand CHERRY_PICK
-
FORMAT_PATCH
public static final GeneralPreferencesInfo.DownloadCommand FORMAT_PATCH
-
BRANCH
public static final GeneralPreferencesInfo.DownloadCommand BRANCH
-
RESET
public static final GeneralPreferencesInfo.DownloadCommand RESET
-
-
Method Detail
-
values
public static GeneralPreferencesInfo.DownloadCommand[] 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 (GeneralPreferencesInfo.DownloadCommand c : GeneralPreferencesInfo.DownloadCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeneralPreferencesInfo.DownloadCommand 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
-
-