Package com.xmlmind.util
Class ObjectUtil
- java.lang.Object
-
- com.xmlmind.util.ObjectUtil
-
public final class ObjectUtil extends Object
A collection of utility functions (static methods) operating on Objects.
-
-
Field Summary
Fields Modifier and Type Field Description static Object[]
NO_OBJECTS
An empty array of Objects.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equals(Object o1, Object o2)
Tests if specified objects are equal usingequals()
.static String
instanceString(Object o)
Returns a string representing specified object.
-
-
-
Field Detail
-
NO_OBJECTS
public static final Object[] NO_OBJECTS
An empty array of Objects.
-
-
Method Detail
-
equals
public static final boolean equals(Object o1, Object o2)
Tests if specified objects are equal usingequals()
. Unlike withequals()
, both objects may benull
and twonull
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[])
.
-
-