Enum Patch.FileMode

    • 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 name
        NullPointerException - if the argument is null
      • getCode

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