Enum Class Patch.FileMode

java.lang.Object
java.lang.Enum<Patch.FileMode>
com.google.gerrit.entities.Patch.FileMode
All Implemented Interfaces:
CodedEnum, Serializable, Comparable<Patch.FileMode>, java.lang.constant.Constable
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 for FileMode.
  • Enum Constant Details

    • TREE

      public static final Patch.FileMode TREE
      Mode indicating an entry is a tree (aka directory).
    • 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.
    • MISSING

      public static final Patch.FileMode MISSING
      Mode indicating an entry is missing during parallel walks.
  • Method Details

    • values

      public static Patch.FileMode[] 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

      public static Patch.FileMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public char getCode()
      Specified by:
      getCode in interface CodedEnum
    • getMode

      public int getMode()