Top Description Constructors Methods
net.jpountz.xxhash

public abstract Class XXHash64

extends Object
Class Inheritance
Known Direct Subclasses
net.jpountz.xxhash.XXHash64JNI
Imports
java.nio.ByteBuffer

A 64-bits hash.

Instances of this class are thread-safe.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract long
hash(byte[] buf, int off, int len, long seed)

Compute the 64-bits hash of buf[off:off+len] using seed seed.

public abstract long
hash(ByteBuffer buf, int off, int len, long seed)

Compute the hash of the given slice of the ByteBuffer.

public final long
hash(ByteBuffer buf, long seed)

Compute the hash of the given ByteBuffer.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

XXHash64back to summary
public XXHash64()

Method Detail

hashback to summary
public abstract long hash(byte[] buf, int off, int len, long seed)

Compute the 64-bits hash of buf[off:off+len] using seed seed.

hashback to summary
public abstract long hash(ByteBuffer buf, int off, int len, long seed)

Compute the hash of the given slice of the ByteBuffer. position and limit are not modified.

hashback to summary
public final long hash(ByteBuffer buf, long seed)

Compute the hash of the given ByteBuffer. The position is moved in order to reflect bytes which have been read.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override