public static final class Objects.ToStringHelper extends Object
Objects.toStringHelper(java.lang.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. |
String |
toString()
Returns a string in the format specified by
Objects.toStringHelper(Object) . |
public Objects.ToStringHelper add(String name, @Nullable Object value)
name=value
format. If value
is null
, the string "null"
is used.public Objects.ToStringHelper addValue(@Nullable Object value)
value
format.
It is strongly encouraged to use add(String, Object)
instead
and give value a readable name.
public String toString()
Objects.toStringHelper(Object)
.Copyright © 2010-2012. All Rights Reserved.