public class ObjectUtil extends Object
| Constructor and Description |
|---|
ObjectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(Object a,
Object b)
JDK7 引入的Null安全的equals
|
static int |
hashCode(Object... objects)
多个对象的HashCode串联, 组成新的HashCode
|
static String |
toPrettyString(Object value)
对象的toString(), 处理了对象为数组的情况,JDK的默认toString()只打数组的地址如 "[Ljava.lang.Integer;@490d6c15.
|
public static int hashCode(Object... objects)
Copyright © 2018. All rights reserved.