|
| CPBaseParcel (Parcel in, int parcelVersion) |
|
| BaseParcel (Parcel in, int parcelVersion) |
|
void | setParcelVersion (int targetParcelVersion) |
|
final int | getParcelVersion () |
|
String | getClassName () |
|
void | writeToParcel (Parcel dest, int flags) |
|
int | describeContents () |
|
|
static< CPEntityType extends CPBaseParcel > CPEntityType | buildFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @Nullable CPEntityType parentObject) |
|
|
abstract< CPEntityType extends CPBaseParcel > CPEntityType | buildFromCpJson ( @NonNull JSONObject jsonObject, @Nullable CPEntityType parentObject) |
|
|
static< CPEntityType extends CPBaseParcel > ArrayList< CPEntityType > | buildListFromCpJson ( @NonNull JSONObject jsonObject, @NonNull Class< CPEntityType > clazz, @NonNull String targetJsonAlias) |
|
static void | safelySetParcelVersion (final int targetParcelVersion, @Nullable BaseParcel item) |
|
static void | safelySetParcelVersion (final int targetParcelVersion, @Nullable List<? extends BaseParcel > items) |
|
static< T extends BaseParcel > void | safelySetParcelVersion (final int targetParcelVersion, @Nullable T[] items) |
|
Created by romans1 on 11/02/2017. Inherits BaseParcel for support all common entities functions and extends it with CP-specific functions.
Definition at line 20 of file CPBaseParcel.java.
◆ buildFromCpJson()
static <CPEntityType extends CPBaseParcel> CPEntityType buildFromCpJson |
( |
@NonNull JSONObject |
jsonObject, |
|
|
@NonNull Class< CPEntityType > |
clazz, |
|
|
@Nullable CPEntityType |
parentObject |
|
) |
| |
|
static |
Used internally to build when handling CP Triggers or other messages. Either populates the transaction object provided, or creates a new one if the former is null. Only sets values if the value is available from the JSON, otherwise an element is ignored.
- Parameters
-
jsonObject | json object for parsing |
clazz | expected class |
- Returns
- new object with parsed values.
Definition at line 40 of file CPBaseParcel.java.
The documentation for this class was generated from the following file: