public final class MathUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
bitMix(int in)
Bit-mixing for pseudo-randomization of integers (e.g., to guard against bad hash functions).
|
static int |
murmurHash(int code)
This function hashes an integer value.
|
public static int murmurHash(int code)
code - The integer to be hashed.public static int bitMix(int in)
in - the input valueCopyright © 2022 CDAP Licensed under the Apache License, Version 2.0.