Class Objects.ToStringHelper
java.lang.Object
com.google.api.client.util.Objects.ToStringHelper
- Enclosing class:
Objects
Support class for
Objects.toStringHelper(Object).- Since:
- 1.14
- Author:
- Yaniv Inbar
-
Method Summary
Modifier and TypeMethodDescriptionAdds a name/value pair to the formatted output inname=valueformat.Configures theObjects.ToStringHelpersotoString()will ignore properties with null value.toString()
-
Method Details
-
omitNullValues
Configures theObjects.ToStringHelpersotoString()will ignore properties with null value. The order of calling this method, relative to theadd()/addValue()methods, is not significant. -
add
Adds a name/value pair to the formatted output inname=valueformat. Ifvalueisnull, the string"null"is used, unlessomitNullValues()is called, in which case this name/value pair will not be added. -
toString
-