public final class ObjectUtility extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
compactObjectToString(Object object) |
static Object |
concatenateArrays(Object arr1,
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 String |
defaultObjectToString(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(Throwable thr) |
static boolean |
equals(Object obj1,
Object obj2) |
static void |
main(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.
|
String |
objectToString(Object obj)
objectToString handles display of arbitrary objects.
|
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 String defaultObjectToString(Object object)
public String objectToString(Object obj)
public static Object concatenateArrays(Object arr1, Object arr2)
public static void displayException(Throwable thr)
public static void main(String[] args)
Copyright © 2018 Oracle. All rights reserved.