Class SerializedObjectBuilder
java.lang.Object
com.inductiveautomation.perspective.common.SerializedObjectBuilder
Helper class that helps gson serializers make JsonObject instances and avoid serializing null fields where
 omitting them would make for a cleaner serialized object.
- 
Constructor SummaryConstructorsConstructorDescriptionSerializedObjectBuilder(com.inductiveautomation.ignition.common.gson.JsonSerializationContext context) 
- 
Method SummaryModifier and TypeMethodDescriptionAdd the boolean if it is not null and not equal to its default value.Add the integer value if it is not null.Add the integer value if it is not null and not equal to its default value.Add the given value if it is not null.Add the given value if it is not null and not equal to the provided default.Add the string value if it is not null.Add the string value if it is not null and not equal to its default value.add(String fieldName, Collection<?> collection) Adds the given collection only if it is non-null and non-emptyAdd the given value if it is not null and it passes the given predicate.com.inductiveautomation.ignition.common.gson.JsonObjectbuild()
- 
Constructor Details- 
SerializedObjectBuilderpublic SerializedObjectBuilder(com.inductiveautomation.ignition.common.gson.JsonSerializationContext context) 
 
- 
- 
Method Details- 
addAdd the given value if it is not null and it passes the given predicate.
- 
addAdd the string value if it is not null.
- 
addAdd the string value if it is not null and not equal to its default value.
- 
addAdd the boolean if it is not null and not equal to its default value.
- 
addAdd the integer value if it is not null and not equal to its default value.
- 
addAdd the integer value if it is not null.
- 
addAdd the given value if it is not null.
- 
addAdd the given value if it is not null and not equal to the provided default.
- 
addAdds the given collection only if it is non-null and non-empty
- 
buildpublic com.inductiveautomation.ignition.common.gson.JsonObject build()
 
-