Modifier and Type | Method | Description |
---|---|---|
Objects.ToStringBuilder |
add(Object value) |
|
Objects.ToStringBuilder |
add(String field,
Object value) |
Adds the field and value to the value returned.
|
static Objects.ToStringBuilder |
of(Class<?> clazz) |
Creates a new string builder for the
clazz . |
static Objects.ToStringBuilder |
of(Object self) |
Creates a new string builder for the
self . |
static Objects.ToStringBuilder |
of(String className) |
Creates a new string builder for the
className . |
String |
toString() |
public static Objects.ToStringBuilder of(Class<?> clazz)
clazz
.clazz
- the base class for the string result.public static Objects.ToStringBuilder of(String className)
className
.className
- the class name to prepend the string value with.public static Objects.ToStringBuilder of(Object self)
self
.self
- the object to create the builder for.public Objects.ToStringBuilder add(Object value)
public Objects.ToStringBuilder add(String field, Object value)
field
- the field for the value.value
- the value of the field.Copyright © 2018. All rights reserved.