public final class ToStringHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LIST_TOKEN_SEPERATOR |
static String |
NAME_VALUE_TOKEN_FORMAT |
static String |
POJOCLASS_TOSTRING_FORMAT |
| Constructor and Description |
|---|
ToStringHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
nameValuePair(Object name,
Object value)
This method formats name value pairs into the proper string format.
|
static String |
pojoClassToString(PojoClass pojoClass,
Object instance)
This method takes an object instance for a pojoClass and flattens it into a properly formatted string.
|
public static final String NAME_VALUE_TOKEN_FORMAT
public static final String LIST_TOKEN_SEPERATOR
public static final String POJOCLASS_TOSTRING_FORMAT
public static String nameValuePair(Object name, Object value)
name - The name to format.value - The value to format.public static String pojoClassToString(PojoClass pojoClass, Object instance)
pojoClass - The meta representation of the instance class.instance - The instance to format.Copyright © 2010-2016. All Rights Reserved.