public static class Objects.ToStringHelper extends Object
Objects.toStringHelper(Object).Objects.toStringHelper(Object)| Modifier and Type | Method and Description |
|---|---|
Objects.ToStringHelper |
add(String name,
Object value)
Adds a name/value pair to the formatted output in
name=value
format. |
Objects.ToStringHelper |
addValue(Object value)
Adds a value to the formatted output in
value format.
It is strongly encouraged to use add(String, Object) instead and
give value a readable name. |
String |
toString()
Returns the formatted string.
|
public Objects.ToStringHelper add(String name, Object value)
name=value
format. If value is null, the string "null"
is used.public Objects.ToStringHelper addValue(Object value)
value format.
It is strongly encouraged to use add(String, Object) instead and
give value a readable name.Copyright © 2012. All Rights Reserved.