java.lang.Object
swim.util.Murmur3
32-bit MurmurHash
 algorithm, version 3.
- 
Method SummaryModifier and TypeMethodDescriptionstatic inthash(boolean value) Returns the hash code of the primitive `boolean` `value`.static inthash(byte value) Returns the hash code of the primitive `byte` `value`.static inthash(char value) Returns the hash code of the primitive `char` `value`.static inthash(double value) Returns the hash code of the primitive `double` `value`.static inthash(float value) Returns the hash code of the primitive `float` `value`.static inthash(int value) Returns the hash code of the primitive `int` `value`.static inthash(long value) Returns the hash code of the primitive `long` `value`.static inthash(short value) Returns the hash code of the primitive `short` `value`.static intReturns the hash code of thenumber.static intReturns the hash code of the–possiblynull–object.static intmash(int code) Finalizes a hashcode.static intmix(int code, byte[] array) Mixes each consecutive 4-byte word in thearrayinto the accumulated hashcode.static intmix(int code, byte[] array, int offset, int size) Mixes each consecutive 4-byte word in thearray, starting at indexoffset, and continuing forsizebytes, into the accumulated hashcode.static intmix(int code, int value) Mixes a new hashvalueinto the accumulated cumulative hashcode.static intMixes each consecutive 4-byte word in the UTF-8 encoding of thestringinto the accumulated hashcode.static intReturns the hash code of the name of the class.static intReturns the hash code of thestring.
- 
Method Details- 
seedReturns the hash code of the name of the class.
- 
seedReturns the hash code of thestring.
- 
hashpublic static int hash(byte value) Returns the hash code of the primitive `byte` `value`.
- 
hashpublic static int hash(short value) Returns the hash code of the primitive `short` `value`.
- 
hashpublic static int hash(int value) Returns the hash code of the primitive `int` `value`.
- 
hashpublic static int hash(long value) Returns the hash code of the primitive `long` `value`.
- 
hashpublic static int hash(float value) Returns the hash code of the primitive `float` `value`.
- 
hashpublic static int hash(double value) Returns the hash code of the primitive `double` `value`.
- 
hashpublic static int hash(char value) Returns the hash code of the primitive `char` `value`.
- 
hashpublic static int hash(boolean value) Returns the hash code of the primitive `boolean` `value`.
- 
hashReturns the hash code of thenumber.
- 
hashReturns the hash code of the–possiblynull–object.
- 
mixpublic static int mix(int code, byte[] array, int offset, int size) Mixes each consecutive 4-byte word in thearray, starting at indexoffset, and continuing forsizebytes, into the accumulated hashcode.
- 
mixpublic static int mix(int code, byte[] array) Mixes each consecutive 4-byte word in thearrayinto the accumulated hashcode.
- 
mixMixes each consecutive 4-byte word in the UTF-8 encoding of thestringinto the accumulated hashcode.
- 
mixpublic static int mix(int code, int value) Mixes a new hashvalueinto the accumulated cumulative hashcode.
- 
mashpublic static int mash(int code) Finalizes a hashcode.
 
-