DataObject
The DataObject represents a map of restricted data types which are wrappable by DataItem, to ensure that all data passed to the SDK can be used correctly and without unexpected behaviours when converting to Strings.
Instances of DataObject are immutable. When requiring updates, the copy method is available to use, which is prepopulate a Builder with the existing set of DataItems
This class will serialize to a JSON object - { ... } - when calling toString.
See also
Properties
Returns the number of top level entries stored in this DataObject.
Functions
Should return an instance of a DataItem that represents all required properties of the implementing class, such that it could be:
Returns a ParcelableDataItem that wraps the DataItem.
Takes a copy of this DataObject and builds the necessary path according to the given path in order to store the given item.
Convenience method to create a new Builder containing all the values in this DataObject
Copies the existing DataObject into a new Builder instance that can be used to add/remove entries and create a new instance of the DataObject
Extracts a nested DataObject according to the given jsonPath.
Gets the Boolean stored at the given key if there is one
Gets the DataObject stored at the given key if there is one
Maps the Map.Entry.value component only, keeping the Map.Entry.key the same.
Maps the Map.Entry.value component only, keeping the Map.Entry.key the same.
Deep merges two DataObjects together, returning a new DataObject containing the merged data.
Convenience method for merging a Iterable group of Observables of the same type.
Merges two DataObject objects together.