Enum GitIdentifiers.FileMode

java.lang.Object
java.lang.Enum<GitIdentifiers.FileMode>
org.apache.commons.codec.digest.GitIdentifiers.FileMode
All Implemented Interfaces:
Serializable, Comparable<GitIdentifiers.FileMode>
Enclosing class:
GitIdentifiers

public static enum GitIdentifiers.FileMode extends Enum<GitIdentifiers.FileMode>
The type of a Git tree entry, which maps to a Unix file-mode string.

Git encodes the file type and permission bits as an ASCII octal string that precedes the entry name in the binary tree format. The values defined here cover the four entry types that Git itself produces.

See Also:
  • Enum Constant Details

  • Field Details

    • modeBytes

      private final byte[] modeBytes
      Serialized mode: since this is mutable, it must remain private.
  • Constructor Details

    • FileMode

      private FileMode(byte[] modeBytes)
  • Method Details

    • values

      public static GitIdentifiers.FileMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GitIdentifiers.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 name
      NullPointerException - if the argument is null
    • get

      private static GitIdentifiers.FileMode get(Path path)