public final class ObjectUtility extends Object
Constructor and Description |
---|
ObjectUtility(boolean isIndenting,
int initialLevel,
int increment) |
Modifier and Type | Method and Description |
---|---|
static String |
compactObjectToString(Object object)
A convenience method that gives the default behavior: do not use
indenting to display the object's structure.
|
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.
|
String |
objectToString(Object obj)
objectToString handles display of arbitrary objects.
|
ObjectUtility |
useToString(Class cls) |
public ObjectUtility(boolean isIndenting, int initialLevel, int increment)
public ObjectUtility useToString(Class cls)
public static String defaultObjectToString(Object object)
object
- Object to print.public static String compactObjectToString(Object object)
object
- Object to print.public String objectToString(Object obj)
Copyright © 2017 Oracle. All rights reserved.