public abstract class ModelObject
extends java.lang.Object
implements android.os.Parcelable
ModelObject.Serializer
interface.
All model object also implement Parcelable to be sent as part of Extras in an Intent Bundle.
The classes extending ModelObject
are data classes designed to work standalone or in association with JSON libraries like GSON and Moshi.Modifier and Type | Class and Description |
---|---|
static class |
ModelObject.Creator<T extends ModelObject>
A helper class that implements the Parcelable.Creator for a ModelObject.
|
static interface |
ModelObject.Serializer<T extends ModelObject>
Interface that must be implemented and provided as a public SERIALIZER field that serializes the to and from a JSONObject.
|
Constructor and Description |
---|
ModelObject() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |