Example usage for Java org.springframework.util ObjectUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
A[] | addObjectToArray(@Nullable A[] array, @Nullable O obj) Append the given object to the given array, returning a new array consisting of the input array contents plus the given object. |
boolean | containsElement(@Nullable Object[] array, Object element) Check whether the given array contains the given element. |
String | getDisplayString(@Nullable Object obj) Return a content-based String representation if obj is not null ; otherwise returns an empty String. |
String | getIdentityHexString(Object obj) Return a hex String form of an object's identity hash code. |
int | hashCode(boolean bool) Return the same value as Boolean#hashCode(boolean) }. |
int | hashCode(double dbl) Return the same value as Double#hashCode(double) }. |
int | hashCode(float flt) Return the same value as Float#hashCode(float) }. |
int | hashCode(long lng) Return the same value as Long#hashCode(long) }. |
String | identityToString(@Nullable Object obj) Return a String representation of an object's overall identity. |
boolean | isArray(@Nullable Object obj) Determine whether the given object is an array: either an Object array or a primitive array. |
boolean | isEmpty(@Nullable Object[] array) Determine whether the given array is empty: i.e. |
boolean | isEmpty(@Nullable Object obj) Determine whether the given object is empty. |
String | nullSafeClassName(@Nullable Object obj) Determine the class name for the given object. |
boolean | nullSafeEquals(@Nullable Object o1, @Nullable Object o2) Determine if the given objects are equal, returning true if both are null or false if only one is null . |
int | nullSafeHashCode(@Nullable Object obj) Return as hash code for the given object; typically the value of Object#hashCode() }. |
int | nullSafeHashCode(@Nullable Object[] array) Return a hash code based on the contents of the specified array. |
int | nullSafeHashCode(@Nullable boolean[] array) Return a hash code based on the contents of the specified array. |
int | nullSafeHashCode(@Nullable byte[] array) Return a hash code based on the contents of the specified array. |
int | nullSafeHashCode(@Nullable char[] array) Return a hash code based on the contents of the specified array. |
int | nullSafeHashCode(@Nullable double[] array) Return a hash code based on the contents of the specified array. |
int | nullSafeHashCode(@Nullable float[] array) Return a hash code based on the contents of the specified array. |
int | nullSafeHashCode(@Nullable int[] array) Return a hash code based on the contents of the specified array. |
int | nullSafeHashCode(@Nullable long[] array) Return a hash code based on the contents of the specified array. |
int | nullSafeHashCode(@Nullable short[] array) Return a hash code based on the contents of the specified array. |
String | nullSafeToString(@Nullable Object obj) Return a String representation of the specified Object. |
String | nullSafeToString(@Nullable Object[] array) Return a String representation of the contents of the specified array. |
String | nullSafeToString(@Nullable boolean[] array) Return a String representation of the contents of the specified array. |
String | nullSafeToString(@Nullable byte[] array) Return a String representation of the contents of the specified array. |
String | nullSafeToString(@Nullable char[] array) Return a String representation of the contents of the specified array. |
String | nullSafeToString(@Nullable double[] array) Return a String representation of the contents of the specified array. |
String | nullSafeToString(@Nullable float[] array) Return a String representation of the contents of the specified array. |
String | nullSafeToString(@Nullable int[] array) Return a String representation of the contents of the specified array. |
String | nullSafeToString(@Nullable long[] array) Return a String representation of the contents of the specified array. |
String | nullSafeToString(@Nullable short[] array) Return a String representation of the contents of the specified array. |
Object[] | toObjectArray(@Nullable Object source) Convert the given array (which may be a primitive array) to an object array (if necessary of primitive wrapper objects). |
Object | unwrapOptional(@Nullable Object obj) Unwrap the given object which is potentially a java.util.Optional . |