Package com.google.gerrit.entities
Enum Patch.FileMode
- java.lang.Object
-
- java.lang.Enum<Patch.FileMode>
-
- com.google.gerrit.entities.Patch.FileMode
-
- All Implemented Interfaces:
CodedEnum
,Serializable
,Comparable<Patch.FileMode>
- Enclosing class:
- Patch
public static enum Patch.FileMode extends Enum<Patch.FileMode> implements CodedEnum
Constants describing various file modes recognized by GIT. This is the Gerrit entity forFileMode
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXECUTABLE_FILE
Mode indicating an entry is an executable file.GITLINK
Mode indicating an entry is a submodule commit in another repository.MISSING
Mode indicating an entry is missing during parallel walks.REGULAR_FILE
Mode indicating an entry is a non-executable file.SYMLINK
Mode indicating an entry is a symbolic link.TREE
Mode indicating an entry is a tree (aka directory).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getCode()
static Patch.FileMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static Patch.FileMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TREE
public static final Patch.FileMode TREE
Mode indicating an entry is a tree (aka directory).
-
SYMLINK
public static final Patch.FileMode SYMLINK
Mode indicating an entry is a symbolic link.
-
REGULAR_FILE
public static final Patch.FileMode REGULAR_FILE
Mode indicating an entry is a non-executable file.
-
EXECUTABLE_FILE
public static final Patch.FileMode EXECUTABLE_FILE
Mode indicating an entry is an executable file.
-
GITLINK
public static final Patch.FileMode GITLINK
Mode indicating an entry is a submodule commit in another repository.
-
MISSING
public static final Patch.FileMode MISSING
Mode indicating an entry is missing during parallel walks.
-
-
Method Detail
-
values
public static Patch.FileMode[] 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 (Patch.FileMode c : Patch.FileMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Patch.FileMode 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
-
-