Package pascal.taie.util
Class Hashes
java.lang.Object
pascal.taie.util.Hashes
Static utility methods for computing hash code.
Avoids array creation of Objects.hash().
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
static int
static int
static int
static int
static int
-
Method Details
-
hash
- Returns:
- hash code of two objects.
- Throws:
NullPointerException
- if any parameter is null
-
safeHash
- Returns:
- hash code of two objects, with null check.
-
hash
- Returns:
- hash code of three objects.
- Throws:
NullPointerException
- if any parameter is null
-
safeHash
- Returns:
- hash code of four objects, with null check.
-
hash
- Returns:
- hash code of four objects.
- Throws:
NullPointerException
- if any parameter is null
-
safeHash
- Returns:
- hash code of four objects, with null check.
-