| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the new accumulated hash codethe accumulated hash code of the previous stage accumulatedHash, int a prime multiplier prime, int the hash code of the next single item nextHash)A hash function which combines an accumulated hash with a next hash such that |
| public static int | Returns: the new accumulated hash codethe accumulated hash code of the previous stage accumulatedHash, int the hash code of the next single item nextHash)A hash function which combines an accumulated hash with a next hash such that |
| public static int | Returns: the new accumulated hash codethe accumulated hash code of the previous stage accumulatedHash, int a prime multiplier prime, int the hash code of the next single item nextHash)A hash function which combines an accumulated hash with a next hash such that |
| public static int | Returns: the new accumulated hash codethe accumulated hash code of the previous stage accumulatedHash, int the hash code of the next single item nextHash)A hash function which combines an accumulated hash with a next hash such that |
| public static int | Returns: the wrapped multiply resultthe first number to multiply a, int the second number to multiply b)Multiply two unsigned integers together. |
| public static int | Returns: the rounded power of two valuethe value (must not be negative and must be less than or equal to value)2^31)Round the given value up to the next positive power of two. |
| PRESELECTED_PRIME | back to summary |
|---|---|
| private static final int PRESELECTED_PRIME | |
| HashMath | back to summary |
|---|---|
| private HashMath() | |
| multiHashOrdered | back to summary |
|---|---|
| public static int multiHashOrdered(int accumulatedHash, int prime, int nextHash) A hash function which combines an accumulated hash with a next hash such that The exact algorithm is not specified and is therefore subject to change and should not be relied upon for hash codes that persist outside of the JVM process.
| |
| multiHashOrdered | back to summary |
|---|---|
| public static int multiHashOrdered(int accumulatedHash, int nextHash) A hash function which combines an accumulated hash with a next hash such that The exact algorithm is not specified and is therefore subject to change and should not be relied upon for hash codes that persist outside of the JVM process.
| |
| multiHashUnordered | back to summary |
|---|---|
| public static int multiHashUnordered(int accumulatedHash, int prime, int nextHash) A hash function which combines an accumulated hash with a next hash such that The exact algorithm is not specified and is therefore subject to change and should not be relied upon for hash codes that persist outside of the JVM process.
| |
| multiHashUnordered | back to summary |
|---|---|
| public static int multiHashUnordered(int accumulatedHash, int nextHash) A hash function which combines an accumulated hash with a next hash such that The exact algorithm is not specified and is therefore subject to change and should not be relied upon for hash codes that persist outside of the JVM process.
| |
| multiplyWrap | back to summary |
|---|---|
| public static int multiplyWrap(int a, int b) Multiply two unsigned integers together. If the result overflows a 32-bit number, XOR the overflowed bits back into the result.
This operation is commutative, i.e. if we designate the
| |
| roundToPowerOfTwo | back to summary |
|---|---|
| public static int roundToPowerOfTwo(int value) Round the given value up to the next positive power of two.
| |