It works on all read/write properties, recursively. It support all primitive types, Strings, Collections, ToString objects and multi-dimensional arrays of any of them.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final Object[] | |
| private static final ThreadLocal |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| public static String | |
| private static String |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| NO_PARAMS | back to summary |
|---|---|
| private static final Object[] NO_PARAMS | |
| PREFIX_TL | back to summary |
|---|---|
| private static final ThreadLocal<Stack<String[]>> PREFIX_TL | |
| ToStringBean | back to summary |
|---|---|
| private ToStringBean() | |
| printArrayProperty | back to summary |
|---|---|
| private static void printArrayProperty(final StringBuffer sb, final String prefix, final Object array) | |
| printProperty | back to summary |
|---|---|
| private static void printProperty(final StringBuffer sb, final String prefix, final Object value) | |
| toString | back to summary |
|---|---|
| public static String toString(Class<?> beanClass, Object obj) Returns the String representation of the bean given in the constructor. It uses the Class name as the prefix.
| |
| toString | back to summary |
|---|---|
| private static String toString(final Class<?> beanClass, final Object obj, final String prefix) Returns the String representation of the bean given in the constructor.
| |