Img

public class Img extends GenericParcelable implements Validator, JSONifiable

This is an auto-generated Clover data object.

Fields

Constructors

Link copied to clipboard
public void Img()
Constructs a new empty instance.
public void Img(String json)
Constructs a new instance from the given JSON String.
public void Img(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.
public void Img(Img src)
Constructs a new instance that is a deep copy of the source instance.

Types

Link copied to clipboard
public interface Constraints

Properties

Link copied to clipboard
public final static int CONTENTS_FILE_DESCRIPTOR
Link copied to clipboard
public final static Parcelable.Creator<Img> CREATOR
Link copied to clipboard
public final static JSONifiable.Creator<Img> JSON_CREATOR
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearHeight()
Clears the 'height' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearSrc()
Clears the 'src' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearWidth()
Clears the 'width' field, the 'has' method for this field will now return false
Link copied to clipboard
public boolean containsChanges()
Returns true if this instance has any changes.
Link copied to clipboard
public Img copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
Link copied to clipboard
public final int describeContents()
Link copied to clipboard
public final Bundle getBundle()
Link copied to clipboard
public Long getHeight()
The height of the image if available
Link copied to clipboard
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.
Link copied to clipboard
public String getSrc()
The url to the image if available
Link copied to clipboard
public Long getWidth()
The width of the image if available
Link copied to clipboard
public boolean hasHeight()
Checks whether the 'height' field has been set, however the value could be null
Link copied to clipboard
public boolean hasSrc()
Checks whether the 'src' field has been set, however the value could be null
Link copied to clipboard
public boolean hasWidth()
Checks whether the 'width' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotNullHeight()
Checks whether the 'height' field is set and is not null
Link copied to clipboard
public boolean isNotNullSrc()
Checks whether the 'src' field is set and is not null
Link copied to clipboard
public boolean isNotNullWidth()
Checks whether the 'width' field is set and is not null
Link copied to clipboard
public void mergeChanges(Img src)
Copy all the changed fields from the given source to this instance.
Link copied to clipboard
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
Link copied to clipboard
public Img setHeight(Long height)
Sets the field 'height'.
Link copied to clipboard
public Img setSrc(String src)
Sets the field 'src'.
Link copied to clipboard
public Img setWidth(Long width)
Sets the field 'width'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void validate()
Link copied to clipboard
public final void writeToParcel(Parcel dest, int flags)