Class ChecksumHashFunction.ChecksumHasher

    • Field Detail

      • checksum

        private final java.util.zip.Checksum checksum
    • Constructor Detail

      • ChecksumHasher

        private ChecksumHasher​(java.util.zip.Checksum checksum)
    • Method Detail

      • update

        protected void update​(byte[] bytes,
                              int off,
                              int len)
        Description copied from class: AbstractByteHasher
        Updates this hasher with len bytes starting at off in the given buffer.
        Overrides:
        update in class AbstractByteHasher
      • hash

        public HashCode hash()
        Description copied from interface: Hasher
        Computes a hash code based on the data that have been provided to this hasher. The result is unspecified if this method is called more than once on the same instance.