public HashCode hash ( HashFunction hashFunction ) throws IOException { Hasher hasher = hashFunction . newHasher ( ) ; copyTo ( Funnels . asOutputStream ( hasher ) ) ; return hasher . hash ( ) ; }
Hashes the contents of this byte source using the given hash function .