public class ReleaseNote extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
ReleaseNote.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ReleaseNote> |
CREATOR |
static JSONifiable.Creator<ReleaseNote> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
ReleaseNote()
Constructs a new empty instance.
|
protected |
ReleaseNote(boolean noInit)
Constructs a new empty instance.
|
|
ReleaseNote(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.
|
|
ReleaseNote(ReleaseNote src)
Constructs a new instance that is a deep copy of the source instance.
|
|
ReleaseNote(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
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
|
void |
clearNote()
Clears the 'note' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
ReleaseNote |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getCreatedTime()
Timestamp indicating when the group was created.
|
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()
Timestamp indicating when the note was last updated.
|
String |
getNote()
The contents of the release note
|
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 |
hasNote()
Checks whether the 'note' field has been set, however the value could be 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
|
boolean |
isNotNullNote()
Checks whether the 'note' field is set and is not null
|
void |
mergeChanges(ReleaseNote 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.
|
ReleaseNote |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
ReleaseNote |
setId(String id)
Sets the field 'id'.
|
ReleaseNote |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
ReleaseNote |
setNote(String note)
Sets the field 'note'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<ReleaseNote> CREATOR
public static final JSONifiable.Creator<ReleaseNote> JSON_CREATOR
public ReleaseNote()
protected ReleaseNote(boolean noInit)
public ReleaseNote(String json) throws IllegalArgumentException
IllegalArgumentException
public ReleaseNote(JSONObject jsonObject)
public ReleaseNote(ReleaseNote src)
public String getId()
public String getNote()
public Long getCreatedTime()
public Long getModifiedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullNote()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean hasId()
public boolean hasNote()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public ReleaseNote setId(String id)
public ReleaseNote setNote(String note)
public ReleaseNote setCreatedTime(Long createdTime)
public ReleaseNote setModifiedTime(Long modifiedTime)
public void clearId()
public void clearNote()
public void clearCreatedTime()
public void clearModifiedTime()
public boolean containsChanges()
public void resetChangeLog()
public ReleaseNote copyChanges()
public void mergeChanges(ReleaseNote src)