Top Description Constructors Methods
net.jpountz.xxhash

public abstract Class XXHash32

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

A 32-bits hash.

Instances of this class are thread-safe.

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

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

Compute the hash of the given slice of the ByteBuffer.

public final int
hash(ByteBuffer buf, int 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

XXHash32back to summary
public XXHash32()

Method Detail

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

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

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

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

hashback to summary
public final int hash(ByteBuffer buf, int 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