public final class LangUtils
extends java.lang.Object
equals and hashCode methods.| Modifier and Type | Field and Description |
|---|---|
static int |
HASH_OFFSET |
static int |
HASH_SEED |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(java.lang.Object[] a1,
java.lang.Object[] a2)
Check if two object arrays are equal.
|
static boolean |
equals(java.lang.Object obj1,
java.lang.Object obj2)
Check if two objects are equal.
|
static int |
hashCode(int seed,
boolean b) |
static int |
hashCode(int seed,
int hashcode) |
static int |
hashCode(int seed,
java.lang.Object obj) |
public static final int HASH_SEED
public static final int HASH_OFFSET
public static int hashCode(int seed,
int hashcode)
public static int hashCode(int seed,
boolean b)
public static int hashCode(int seed,
java.lang.Object obj)
public static boolean equals(java.lang.Object obj1,
java.lang.Object obj2)
obj1 - first object to compare, may be nullobj2 - second object to compare, may be nulltrue if the objects are equal or both nullpublic static boolean equals(java.lang.Object[] a1,
java.lang.Object[] a2)
truefalsefalsefalse if any comparisons fail.truea1 - first array to compare, may be nulla2 - second array to compare, may be nulltrue if the arrays are equal or both null