org.getopt.util.hash
Class FNV164

java.lang.Object
  extended by org.getopt.util.hash.FNV1
      extended by org.getopt.util.hash.FNV164

public class FNV164
extends FNV1

Implementation of FNV1 - a fast hash function.

This implementation uses 64-bit operations.

Author:
Andrzej Bialecki <ab@getopt.org>

Field Summary
 
Fields inherited from class org.getopt.util.hash.FNV1
FNV1_32_INIT, FNV1_64_INIT, hash, INIT
 
Constructor Summary
FNV164()
          Create a hash
 
Method Summary
protected  long fnv(byte[] buf, int offset, int len, long seed)
          Compute the hash value.
 
Methods inherited from class org.getopt.util.hash.FNV1
getHash, init, init, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FNV164

public FNV164()
Create a hash

Method Detail

fnv

protected long fnv(byte[] buf,
                   int offset,
                   int len,
                   long seed)
Description copied from class: FNV1
Compute the hash value.

Specified by:
fnv in class FNV1
Parameters:
buf - byte buffer from which to compute the hash
offset - starting position in the buffer
len - number of bytes after the starting position
seed - initial seed (or previous hash value)
Returns:
the next hash value