|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.pfl.test.ObjectUtility
public final class ObjectUtility
General object related utilities. This class must not depend on generated log wrappers.
| Method Summary | |
|---|---|
static java.lang.String |
compactObjectToString(java.lang.Object object)
|
static java.lang.Object |
concatenateArrays(java.lang.Object arr1,
java.lang.Object arr2)
If arr1 and arr2 are both arrays of the same component type, return an array of that component type that consists of the elements of arr1 followed by the elements of arr2. |
static java.lang.String |
defaultObjectToString(java.lang.Object object)
A convenience method that gives the default behavior: use indenting to display the object's structure and do not use built-in toString methods. |
static void |
displayException(java.lang.Throwable thr)
|
static boolean |
equals(java.lang.Object obj1,
java.lang.Object obj2)
|
static void |
main(java.lang.String[] args)
|
static ObjectUtility |
make()
Get the standard Utility object that supports objectToString with indented display and no use of toString() methods. |
static ObjectUtility |
make(boolean useToString,
boolean isIndenting)
Construct an Utility instance with the desired objectToString behavior. |
static ObjectUtility |
make(boolean useToString,
boolean isIndenting,
int initialLevel,
int increment)
Construct an Utility instance with the desired objectToString behavior. |
java.lang.String |
objectToString(java.lang.Object obj)
objectToString handles display of arbitrary objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ObjectUtility make(boolean useToString,
boolean isIndenting,
int initialLevel,
int increment)
public static ObjectUtility make(boolean useToString,
boolean isIndenting)
public static ObjectUtility make()
public static java.lang.String defaultObjectToString(java.lang.Object object)
public static java.lang.String compactObjectToString(java.lang.Object object)
public java.lang.String objectToString(java.lang.Object obj)
public static boolean equals(java.lang.Object obj1,
java.lang.Object obj2)
public static java.lang.Object concatenateArrays(java.lang.Object arr1,
java.lang.Object arr2)
public static void displayException(java.lang.Throwable thr)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||