Further discussion on the corelibs mailing list about utility methods suitable for java.util.Objects revealed several worthwhile additions including:
static toString(Object o, String default): toString taking a default if o is null
static deepEquals(Object a, Object b): run deep equals on arbritrary arguments
static hash(Object... objs): compute a hash code for inputs
static toString(Object o, String default): toString taking a default if o is null
static deepEquals(Object a, Object b): run deep equals on arbritrary arguments
static hash(Object... objs): compute a hash code for inputs
- duplicates
-
JDK-6431610 (coll) util.Hashing class
-
- Closed
-
- relates to
-
JDK-6797535 Add shared two argument static equals method to the platform
-
- Resolved
-
-
JDK-6909057 @see Arrays#hashCode missing particular method specification in j.u.Objects.hash
-
- Resolved
-
-
JDK-6889858 Add nonNull methods to java.util.Objects
-
- Resolved
-