public final class ObjectUtilities extends Object
ph-commons-util, though now has a couple of extra things in it.)| Modifier and Type | Field and Description |
|---|---|
static Object[] |
EMPTY_OBJECT_ARRAY
Shared instance of an empty array of Objects, which is sometimes useful!
|
| Constructor and Description |
|---|
ObjectUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static String |
beanToString(Object bean)
Utility method to create a simple String representation of a JavaBean Object by
showing all properties
p which can be called by getP()
on the Object. |
static <E> E[] |
concat(E[] array1,
E[] array2,
Class<E> itemClass) |
static boolean |
isNullOrEmpty(Object[] array) |
static boolean |
nullSafeEquals(Object o1,
Object o2)
Checks equality of two Objects, allowing the case where o1==o2==null
to return true.
|
static String |
safeToString(Object object)
Convenience toString() method that can be applied safely to a null
Object, yielding null.
|
public static final Object[] EMPTY_OBJECT_ARRAY
public static String safeToString(Object object)
object - public static boolean nullSafeEquals(Object o1, Object o2)
o1 - o2 - public static boolean isNullOrEmpty(Object[] array)
public static <E> E[] concat(E[] array1,
E[] array2,
Class<E> itemClass)
public static String beanToString(Object bean)
p which can be called by getP()
on the Object.bean - className(p1=value,p2=value,...)Copyright © 2008–2026 The University of Edinburgh. All rights reserved.