|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.ObjectUtils
public class ObjectUtils
Object utils
| Constructor Summary | |
|---|---|
ObjectUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
equals(Collection<?> c1,
Collection<?> c2)
equals. |
static boolean |
equals(Object left,
Object right)
equals. |
static int |
hashCode(Object obj)
hashCode. |
static boolean |
isPrintObjectIds()
isPrintObjectIds. |
static boolean |
isShowByteDataAsHex()
isShowByteDataAsHex. |
static boolean |
isShowDataType()
isShowDataType. |
static boolean |
isShowFullClassName()
isShowFullClassName. |
static boolean |
objectEquals(Object o1,
Object o2)
Null-safe object value comparison. |
static String |
printFields(Object o)
printFields. |
static String |
printFieldsDeep(Object o)
printFieldsDeep. |
static void |
setPrintObjectIds(boolean printObjectIds)
Define whether the printFieldsDeep(Object) method should show
the object IDs. |
static void |
setShowByteDataAsHex(boolean showByteDataAsHex)
Define that printFieldsDeep(Object) will use
CryptoUtil.toHex(byte[]) to print the byte arrays, instead of
Object.toString(). |
static void |
setShowDataType(boolean showDataType)
Setter for the field showDataType. |
static void |
setShowFullClassName(boolean showFullClassName)
Define whether to show the full class name (with path) or just the SimpleName. |
static String |
toString(Object obj)
toString. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectUtils()
| Method Detail |
|---|
public static boolean isShowDataType()
isShowDataType.
public static void setShowDataType(boolean showDataType)
Setter for the field showDataType.
showDataType - the showDataType to setpublic static boolean isShowFullClassName()
isShowFullClassName.
public static void setShowFullClassName(boolean showFullClassName)
showFullClassName - the showFullClassName to setpublic static boolean isShowByteDataAsHex()
isShowByteDataAsHex.
public static void setShowByteDataAsHex(boolean showByteDataAsHex)
printFieldsDeep(Object) will use
CryptoUtil.toHex(byte[]) to print the byte arrays, instead of
Object.toString().
showByteDataAsHex - the showByteDataAsHex to setpublic static boolean isPrintObjectIds()
isPrintObjectIds.
public static void setPrintObjectIds(boolean printObjectIds)
printFieldsDeep(Object) method should show
the object IDs. If it does, it will not necessarily show all the field
values.
printObjectIds - the printObjectIds to set
public static boolean objectEquals(Object o1,
Object o2)
o1 - an object or nullo2 - an object or null
public static int hashCode(Object obj)
hashCode.
obj - a Object object.
public static boolean equals(Collection<?> c1,
Collection<?> c2)
equals.
c1 - a Collection object.c2 - a Collection object.
public static boolean equals(Object left,
Object right)
equals.
left - a Object object.right - a Object object.
public static String toString(Object obj)
toString.
obj - a Object object.
String object.public static String printFieldsDeep(Object o)
printFieldsDeep.
o - a Object object.
String object.public static String printFields(Object o)
printFields.
o - a Object object.
String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||