public class DevicePriceInfo extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
DevicePriceInfo.Constraints
Deprecated.
|
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DevicePriceInfo> |
CREATOR
Deprecated.
|
static JSONifiable.Creator<DevicePriceInfo> |
JSON_CREATOR
Deprecated.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
DevicePriceInfo()
Deprecated.
Constructs a new empty instance.
|
protected |
DevicePriceInfo(boolean noInit)
Deprecated.
Constructs a new empty instance.
|
|
DevicePriceInfo(DevicePriceInfo src)
Deprecated.
Constructs a new instance that is a deep copy of the source instance.
|
|
DevicePriceInfo(JSONObject jsonObject)
Deprecated.
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.
|
|
DevicePriceInfo(String json)
Deprecated.
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearDeviceCountInfo()
Deprecated.
Clears the 'deviceCountInfo' field, the 'has' method for this field will now return false
|
void |
clearPrice()
Deprecated.
Clears the 'price' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Deprecated.
Returns true if this instance has any changes.
|
DevicePriceInfo |
copyChanges()
Deprecated.
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
DeviceCountInfo |
getDeviceCountInfo()
Deprecated.
|
protected GenericClient |
getGenericClient()
Deprecated.
|
JSONObject |
getJSONObject()
Deprecated.
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()
Deprecated.
|
boolean |
hasDeviceCountInfo()
Deprecated.
Checks whether the 'deviceCountInfo' field has been set, however the value could be null
|
boolean |
hasPrice()
Deprecated.
Checks whether the 'price' field has been set, however the value could be null
|
boolean |
isNotNullDeviceCountInfo()
Deprecated.
Checks whether the 'deviceCountInfo' field is set and is not null
|
boolean |
isNotNullPrice()
Deprecated.
Checks whether the 'price' field is set and is not null
|
void |
mergeChanges(DevicePriceInfo src)
Deprecated.
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Deprecated.
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
DevicePriceInfo |
setDeviceCountInfo(DeviceCountInfo deviceCountInfo)
Deprecated.
Sets the field 'deviceCountInfo'.
|
DevicePriceInfo |
setPrice(Long price)
Deprecated.
Sets the field 'price'.
|
void |
validate()
Deprecated.
|
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<DevicePriceInfo> CREATOR
public static final JSONifiable.Creator<DevicePriceInfo> JSON_CREATOR
public DevicePriceInfo()
protected DevicePriceInfo(boolean noInit)
public DevicePriceInfo(String json) throws IllegalArgumentException
IllegalArgumentException
public DevicePriceInfo(JSONObject jsonObject)
public DevicePriceInfo(DevicePriceInfo src)
public Long getPrice()
public DeviceCountInfo getDeviceCountInfo()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullPrice()
public boolean isNotNullDeviceCountInfo()
public boolean hasPrice()
public boolean hasDeviceCountInfo()
public DevicePriceInfo setPrice(Long price)
public DevicePriceInfo setDeviceCountInfo(DeviceCountInfo deviceCountInfo)
public void clearPrice()
public void clearDeviceCountInfo()
public boolean containsChanges()
public void resetChangeLog()
public DevicePriceInfo copyChanges()
public void mergeChanges(DevicePriceInfo src)