Class DfsStreamKey

    • Field Detail

      • hash

        final int hash
      • packExtPos

        final int packExtPos
    • Constructor Detail

      • DfsStreamKey

        protected DfsStreamKey​(int hash,
                               @Nullable
                               PackExt ext)
        Constructor for DfsStreamKey.
        Parameters:
        hash - hash of the other identifying components of the key.
        ext - pack file extension, or null.
    • Method Detail

      • of

        public static DfsStreamKey of​(DfsRepositoryDescription repo,
                                      java.lang.String name,
                                      @Nullable
                                      PackExt ext)
        Create a DfsStreamKey
        Parameters:
        repo - description of the containing repository.
        name - compute the key from a string name.
        ext - pack file extension, or null.
        Returns:
        key for name
      • hashCode

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

        public abstract boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object