CashDetails

public class CashDetails extends GenericParcelable implements Validator, JSONifiable

This is an auto-generated Clover data object.

Cash reconciliation details for a shift

Fields

Constructors

Link copied to clipboard
public void CashDetails()
Constructs a new empty instance.
public void CashDetails(String json)
Constructs a new instance from the given JSON String.
public void CashDetails(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 CashDetails(CashDetails 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<CashDetails> CREATOR
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearActualAmount()
Clears the 'actualAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDenominations()
Clears the 'denominations' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearExpectedAmount()
Clears the 'expectedAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearNote()
Clears the 'note' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearVariance()
Clears the 'variance' 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
Create a copy of this instance that contains only fields that were set after the constructor was called.
Link copied to clipboard
public abstract int describeContents()
public final int describeContents()
Link copied to clipboard
Actual cash amount counted
Link copied to clipboard
public final Bundle getBundle()
Gets a Bundle which can be used to get and set data attached to this instance.
Link copied to clipboard
List of cash denominations
Link copied to clipboard
Expected cash amount
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 getNote()
Additional notes about cash reconciliation
Link copied to clipboard
public Long getVariance()
Variance between expected and actual amount
Link copied to clipboard
public boolean hasActualAmount()
Checks whether the 'actualAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDenominations()
Checks whether the 'denominations' field has been set, however the value could be null
Link copied to clipboard
public boolean hasExpectedAmount()
Checks whether the 'expectedAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasNote()
Checks whether the 'note' field has been set, however the value could be null
Link copied to clipboard
public boolean hasVariance()
Checks whether the 'variance' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotEmptyDenominations()
Checks whether the 'denominations' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotNullActualAmount()
Checks whether the 'actualAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullDenominations()
Checks whether the 'denominations' field is set and is not null
Link copied to clipboard
public boolean isNotNullExpectedAmount()
Checks whether the 'expectedAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullNote()
Checks whether the 'note' field is set and is not null
Link copied to clipboard
public boolean isNotNullVariance()
Checks whether the 'variance' field is set and is not null
Link copied to clipboard
public void mergeChanges(CashDetails 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 CashDetails setActualAmount(Long actualAmount)
Sets the field 'actualAmount'.
Link copied to clipboard
Sets the field 'denominations'.
Link copied to clipboard
public CashDetails setExpectedAmount(Long expectedAmount)
Sets the field 'expectedAmount'.
Link copied to clipboard
public CashDetails setNote(String note)
Sets the field 'note'.
Link copied to clipboard
public CashDetails setVariance(Long variance)
Sets the field 'variance'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void validate()
Link copied to clipboard
public abstract void writeToParcel(Parcel p, int p1)
public final void writeToParcel(Parcel dest, int flags)