public class AppMeteredEvent extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
AppMeteredEvent.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AppMeteredEvent> |
CREATOR |
static JSONifiable.Creator<AppMeteredEvent> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
AppMeteredEvent()
Constructs a new empty instance.
|
|
AppMeteredEvent(AppMeteredEvent src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
AppMeteredEvent(boolean noInit)
Constructs a new empty instance.
|
|
AppMeteredEvent(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be
reflected in this instance and vice-versa.
|
|
AppMeteredEvent(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAppMetered()
Clears the 'appMetered' field, the 'has' method for this field will now return false
|
void |
clearCharge()
Clears the 'charge' field, the 'has' method for this field will now return false
|
void |
clearCount()
Clears the 'count' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
AppMeteredEvent |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
AppMetered |
getAppMetered() |
Reference |
getCharge() |
Long |
getCount() |
Long |
getCreatedTime() |
protected GenericClient |
getGenericClient() |
String |
getId() |
JSONObject |
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be
reflected in this instance and vice-versa.
|
Long |
getModifiedTime() |
boolean |
hasAppMetered()
Checks whether the 'appMetered' field has been set, however the value could be null
|
boolean |
hasCharge()
Checks whether the 'charge' field has been set, however the value could be null
|
boolean |
hasCount()
Checks whether the 'count' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
isNotNullAppMetered()
Checks whether the 'appMetered' field is set and is not null
|
boolean |
isNotNullCharge()
Checks whether the 'charge' field is set and is not null
|
boolean |
isNotNullCount()
Checks whether the 'count' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
void |
mergeChanges(AppMeteredEvent src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
AppMeteredEvent |
setAppMetered(AppMetered appMetered)
Sets the field 'appMetered'.
|
AppMeteredEvent |
setCharge(Reference charge)
Sets the field 'charge'.
|
AppMeteredEvent |
setCount(Long count)
Sets the field 'count'.
|
AppMeteredEvent |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
AppMeteredEvent |
setId(String id)
Sets the field 'id'.
|
AppMeteredEvent |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<AppMeteredEvent> CREATOR
public static final JSONifiable.Creator<AppMeteredEvent> JSON_CREATOR
public AppMeteredEvent()
protected AppMeteredEvent(boolean noInit)
public AppMeteredEvent(String json) throws IllegalArgumentException
IllegalArgumentException
public AppMeteredEvent(JSONObject jsonObject)
public AppMeteredEvent(AppMeteredEvent src)
public String getId()
public AppMetered getAppMetered()
public Long getCount()
public Long getCreatedTime()
public Long getModifiedTime()
public Reference getCharge()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullAppMetered()
public boolean isNotNullCount()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullCharge()
public boolean hasId()
public boolean hasAppMetered()
public boolean hasCount()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasCharge()
public AppMeteredEvent setId(String id)
public AppMeteredEvent setAppMetered(AppMetered appMetered)
public AppMeteredEvent setCount(Long count)
public AppMeteredEvent setCreatedTime(Long createdTime)
public AppMeteredEvent setModifiedTime(Long modifiedTime)
public AppMeteredEvent setCharge(Reference charge)
public void clearId()
public void clearAppMetered()
public void clearCount()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearCharge()
public boolean containsChanges()
public void resetChangeLog()
public AppMeteredEvent copyChanges()
public void mergeChanges(AppMeteredEvent src)