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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a name/value pair to the formatted output inname=valueformat.private Objects.ToStringHelperConfigures theObjects.ToStringHelpersotoString()will ignore properties with null value.toString()
-
Field Details
-
className
-
holderHead
-
holderTail
-
omitNullValues
private boolean omitNullValues
-
-
Constructor Details
-
ToStringHelper
ToStringHelper(String className) - Parameters:
className- wrapped object
-
-
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
-
addHolder
-
addHolder
-