Package com.google.api.client.util
Class Objects.ToStringHelper
java.lang.Object
com.google.api.client.util.Objects.ToStringHelper
- Enclosing class:
Objects
Support class for
Objects.toStringHelper(java.lang.Object)
.-
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=value
format.private Objects.ToStringHelper
Configures theObjects.ToStringHelper
sotoString()
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.ToStringHelper
sotoString()
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=value
format. Ifvalue
isnull
, the string"null"
is used, unlessomitNullValues()
is called, in which case this name/value pair will not be added. -
toString
-
addHolder
-
addHolder
-