Class HashingCodePathFactory.HashingCodePath

    • Constructor Detail

      • HashingCodePath

        public HashingCodePath​(byte[] hash)
        Builds a new HashingCodePathFactory.HashingCodePath based on the provided hash.
        Parameters:
        hash - a byte array representing the hash it must be at least four bytes (though longer hashes are warmly recommended to avoid collisions)
    • Method Detail

      • equals

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

        public byte[] getHash()
        Returns:
        a byte[] representation of the hash. The returned array does not map on the internal status of HashingCodePathFactory.HashingCodePath and can get modified.
      • hashCode

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

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