Package com.google.gerrit.entities
Enum Class Patch.FileMode
- All Implemented Interfaces:
CodedEnum
,Serializable
,Comparable<Patch.FileMode>
,java.lang.constant.Constable
- Enclosing class:
- Patch
Constants describing various file modes recognized by GIT. This is the Gerrit entity for
FileMode
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMode indicating an entry is an executable file.Mode indicating an entry is a submodule commit in another repository.Mode indicating an entry is missing during parallel walks.Mode indicating an entry is a non-executable file.Mode indicating an entry is a symbolic link.Mode indicating an entry is a tree (aka directory). -
Method Summary
Modifier and TypeMethodDescriptionchar
getCode()
int
getMode()
static Patch.FileMode
Returns the enum constant of this class with the specified name.static Patch.FileMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TREE
Mode indicating an entry is a tree (aka directory). -
SYMLINK
Mode indicating an entry is a symbolic link. -
REGULAR_FILE
Mode indicating an entry is a non-executable file. -
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public char getCode() -
getMode
public int getMode()
-