public final class LangUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
HASH_OFFSET |
static int |
HASH_SEED |
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(Object[] a1,
Object[] a2)
Check if two object arrays are equal.
|
static boolean |
equals(Object obj1,
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,
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, Object obj)
public static boolean equals(Object obj1, Object obj2)
obj1
- first object to compare, may be null
obj2
- second object to compare, may be null
true
if the objects are equal or both nullpublic static boolean equals(Object[] a1, Object[] a2)
true
false
false
false
if any comparisons fail.true
a1
- first array to compare, may be null
a2
- second array to compare, may be null
true
if the arrays are equal or both nullCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.