Adds a name/value pair to the formatted output in name=value format. If value is null, the string "null" is used, unless #omitNullValues() is called, in which case this name/value pair will not be added.
(String name, @Nullable Object value)
| 237 | */ |
| 238 | |
| 239 | @CanIgnoreReturnValue |
| 240 | public ToStringHelper add(String name, @Nullable Object value) { |
| 241 | return addHolder(name, value); |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * Adds a name/value pair to the formatted output in {@code name=value} format. |