Class GitIdentifiers.DirectoryEntry

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      The entry name (file or directory name, no path separator).
      private byte[] rawObjectId
      The raw object id of the referenced blob or sub-tree.
      private java.lang.String sortKey
      The key used for ordering entries within a tree object.
      private GitIdentifiers.FileMode type
      The Git object type, which determines the Unix file-mode prefix.
    • Field Detail

      • name

        private final java.lang.String name
        The entry name (file or directory name, no path separator).
      • rawObjectId

        private final byte[] rawObjectId
        The raw object id of the referenced blob or sub-tree.
      • sortKey

        private final java.lang.String sortKey
        The key used for ordering entries within a tree object.

        >Git appends '/' to directory names before comparing.

      • type

        private final GitIdentifiers.FileMode type
        The Git object type, which determines the Unix file-mode prefix.
    • Constructor Detail

      • DirectoryEntry

        DirectoryEntry​(java.lang.String name,
                       GitIdentifiers.FileMode type,
                       byte[] rawObjectId)
        Constructs a new entry.
        Parameters:
        name - The name of the entry, not containing '/'.
        type - The type of the entry, not null.
        rawObjectId - The id of the entry, not null.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object