public class ToString extends Object
| Constructor and Description |
|---|
ToString(Object o)
Create an instance for the given object
|
ToString(Object o,
String indent)
Create an instance for the given object and indentation
|
| Modifier and Type | Method and Description |
|---|---|
ToString |
append(Object value) |
ToString |
append(String value) |
ToString |
append(String name,
boolean value) |
ToString |
append(String name,
Collection value) |
ToString |
append(String name,
int value) |
ToString |
append(String name,
Iterable<?> val,
boolean withNewLines) |
ToString |
append(String name,
Long value) |
ToString |
append(String name,
Object value) |
ToString |
append(Throwable t) |
ToString |
delimit()
add list delimiter
|
StringBuilder |
getSb() |
int |
lineLength() |
ToString |
newLine()
add new line and list delimiter
|
String |
toString() |
static ToString |
valuesOnly() |
public ToString(Object o)
o - the objectpublic static ToString valuesOnly()
public StringBuilder getSb()
public ToString delimit()
public int lineLength()
public ToString newLine()
public ToString append(String name, Iterable<?> val, boolean withNewLines)
name - of fieldval - iterable value to appendwithNewLines - true to add new line after each elementpublic ToString append(String name, Object value)
name - of fieldvalue - an objectpublic ToString append(String name, Long value)
name - of fieldvalue - Longpublic ToString append(String name, Collection value)
name - of fieldvalue - - list of valuespublic ToString append(String name, boolean value)
name - of fieldvalue - booleanpublic ToString append(String name, int value)
name - of fieldvalue - intpublic ToString append(Throwable t)
t - - throwable to outputCopyright © 2018 Bedework. All rights reserved.