Module methanol

Interface DiskStore.Hasher

  • Enclosing class:
    DiskStore
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface DiskStore.Hasher
    A function that computes an 80-bit hash from a string key.
    • Field Detail

      • TRUNCATED_SHA_256

        static final DiskStore.Hasher TRUNCATED_SHA_256
        A Hasher returning the first 80 bits of the SHA-256 of the key's UTF-8 encoded bytes.