Uses of Class
dev.mccue.guava.hash.HashCode

  • Uses of HashCode in dev.mccue.guava.hash

    Methods in dev.mccue.guava.hash that return HashCode
    Modifier and Type
    Method
    Description
    static HashCode
    Hashing.combineOrdered(Iterable<HashCode> hashCodes)
    Returns a hash code, having the same bit length as each of the input hash codes, that combines the information of these hash codes in an ordered fashion.
    static HashCode
    Hashing.combineUnordered(Iterable<HashCode> hashCodes)
    Returns a hash code, having the same bit length as each of the input hash codes, that combines the information of these hash codes in an unordered fashion.
    static HashCode
    HashCode.fromBytes(byte[] bytes)
    Creates a HashCode from a byte array.
    static HashCode
    HashCode.fromInt(int hash)
    Creates a 32-bit HashCode representation of the given int value.
    static HashCode
    HashCode.fromLong(long hash)
    Creates a 64-bit HashCode representation of the given long value.
    static HashCode
    HashCode.fromString(String string)
    Creates a HashCode from a hexadecimal (base 16) encoded string.
    Hasher.hash()
    Computes a hash code based on the data that have been provided to this hasher.
    HashingInputStream.hash()
    Returns the HashCode based on the data read from this stream.
    HashingOutputStream.hash()
    Returns the HashCode based on the data written to this stream.
    HashFunction.hashBytes(byte[] input)
    Shortcut for newHasher().putBytes(input).hash().
    HashFunction.hashBytes(byte[] input, int off, int len)
    Shortcut for newHasher().putBytes(input, off, len).hash().
    HashFunction.hashBytes(ByteBuffer input)
    Shortcut for newHasher().putBytes(input).hash().
    HashFunction.hashInt(int input)
    Shortcut for newHasher().putInt(input).hash(); returns the hash code for the given int value, interpreted in little-endian byte order.
    HashFunction.hashLong(long input)
    Shortcut for newHasher().putLong(input).hash(); returns the hash code for the given long value, interpreted in little-endian byte order.
    <T extends @Nullable Object>
    HashCode
    HashFunction.hashObject(T instance, Funnel<? super T> funnel)
    Shortcut for newHasher().putObject(instance, funnel).hash().
    HashFunction.hashString(CharSequence input, Charset charset)
    Shortcut for newHasher().putString(input, charset).hash().
    HashFunction.hashUnencodedChars(CharSequence input)
    Shortcut for newHasher().putUnencodedChars(input).hash().
    Methods in dev.mccue.guava.hash with parameters of type HashCode
    Modifier and Type
    Method
    Description
    static int
    Hashing.consistentHash(HashCode hashCode, int buckets)
    Assigns to hashCode a "bucket" in the range [0, buckets), in a uniform manner that minimizes the need for remapping as buckets grows.
    Method parameters in dev.mccue.guava.hash with type arguments of type HashCode
    Modifier and Type
    Method
    Description
    static HashCode
    Hashing.combineOrdered(Iterable<HashCode> hashCodes)
    Returns a hash code, having the same bit length as each of the input hash codes, that combines the information of these hash codes in an ordered fashion.
    static HashCode
    Hashing.combineUnordered(Iterable<HashCode> hashCodes)
    Returns a hash code, having the same bit length as each of the input hash codes, that combines the information of these hash codes in an unordered fashion.