public class AppBundleCountry extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
AppBundleCountry.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AppBundleCountry> |
CREATOR |
static JSONifiable.Creator<AppBundleCountry> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
AppBundleCountry()
Constructs a new empty instance.
|
|
AppBundleCountry(AppBundleCountry src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
AppBundleCountry(boolean noInit)
Constructs a new empty instance.
|
|
AppBundleCountry(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.
|
|
AppBundleCountry(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAppBundle()
Clears the 'appBundle' field, the 'has' method for this field will now return false
|
void |
clearCountry()
Clears the 'country' 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 |
clearPrice()
Clears the 'price' field, the 'has' method for this field will now return false
|
void |
clearPricePerDevice()
Clears the 'pricePerDevice' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
AppBundleCountry |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getAppBundle()
DB reference to app bundle that contains this app bundle country.
|
String |
getCountry()
The country of the app bundle country
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
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 |
getPrice() |
Long |
getPricePerDevice() |
boolean |
hasAppBundle()
Checks whether the 'appBundle' field has been set, however the value could be null
|
boolean |
hasCountry()
Checks whether the 'country' 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 |
hasPrice()
Checks whether the 'price' field has been set, however the value could be null
|
boolean |
hasPricePerDevice()
Checks whether the 'pricePerDevice' field has been set, however the value could be null
|
boolean |
isNotNullAppBundle()
Checks whether the 'appBundle' field is set and is not null
|
boolean |
isNotNullCountry()
Checks whether the 'country' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullPrice()
Checks whether the 'price' field is set and is not null
|
boolean |
isNotNullPricePerDevice()
Checks whether the 'pricePerDevice' field is set and is not null
|
void |
mergeChanges(AppBundleCountry 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.
|
AppBundleCountry |
setAppBundle(Long appBundle)
Sets the field 'appBundle'.
|
AppBundleCountry |
setCountry(String country)
Sets the field 'country'.
|
AppBundleCountry |
setId(String id)
Sets the field 'id'.
|
AppBundleCountry |
setPrice(Long price)
Sets the field 'price'.
|
AppBundleCountry |
setPricePerDevice(Long pricePerDevice)
Sets the field 'pricePerDevice'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<AppBundleCountry> CREATOR
public static final JSONifiable.Creator<AppBundleCountry> JSON_CREATOR
public AppBundleCountry()
protected AppBundleCountry(boolean noInit)
public AppBundleCountry(String json) throws IllegalArgumentException
IllegalArgumentException
public AppBundleCountry(JSONObject jsonObject)
public AppBundleCountry(AppBundleCountry src)
public String getId()
public Long getPrice()
public Long getPricePerDevice()
public String getCountry()
public Long getAppBundle()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullPrice()
public boolean isNotNullPricePerDevice()
public boolean isNotNullCountry()
public boolean isNotNullAppBundle()
public boolean hasId()
public boolean hasPrice()
public boolean hasPricePerDevice()
public boolean hasCountry()
public boolean hasAppBundle()
public AppBundleCountry setId(String id)
public AppBundleCountry setPrice(Long price)
public AppBundleCountry setPricePerDevice(Long pricePerDevice)
public AppBundleCountry setCountry(String country)
public AppBundleCountry setAppBundle(Long appBundle)
public void clearId()
public void clearPrice()
public void clearPricePerDevice()
public void clearCountry()
public void clearAppBundle()
public boolean containsChanges()
public void resetChangeLog()
public AppBundleCountry copyChanges()
public void mergeChanges(AppBundleCountry src)