public final class ObjectUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Object[] |
NO_OBJECTS
An empty array of Objects.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(Object o1,
Object o2)
Tests if specified objects are equal using
equals() . |
static String |
instanceString(Object o)
Returns a string representing specified object.
|
public static final Object[] NO_OBJECTS
public static final boolean equals(Object o1, Object o2)
equals()
.
Unlike with equals()
, both objects may be
null
and two null
objects are always
considered to be equal.
This function is missing in java.util.Arrays which, on the other
hand, has all the other functions: Arrays.equals(boolean[],
boolean[])
, Arrays.equals(byte[], byte[])
, ...,
Arrays.equals(Object[], Object[])
.