public class ServerTotalStats extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
ServerTotalStats.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ServerTotalStats> |
CREATOR |
static JSONifiable.Creator<ServerTotalStats> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
ServerTotalStats()
Constructs a new empty instance.
|
protected |
ServerTotalStats(boolean noInit)
Constructs a new empty instance.
|
|
ServerTotalStats(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.
|
|
ServerTotalStats(ServerTotalStats src)
Constructs a new instance that is a deep copy of the source instance.
|
|
ServerTotalStats(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearEmployeeId()
Clears the 'employeeId' field, the 'has' method for this field will now return false
|
void |
clearEmployeeName()
Clears the 'employeeName' field, the 'has' method for this field will now return false
|
void |
clearGiftCardCashOuts()
Clears the 'giftCardCashOuts' field, the 'has' method for this field will now return false
|
void |
clearGiftCardLoads()
Clears the 'giftCardLoads' field, the 'has' method for this field will now return false
|
void |
clearNet()
Clears the 'net' field, the 'has' method for this field will now return false
|
void |
clearRefunds()
Clears the 'refunds' field, the 'has' method for this field will now return false
|
void |
clearSales()
Clears the 'sales' field, the 'has' method for this field will now return false
|
void |
clearTax()
Clears the 'tax' field, the 'has' method for this field will now return false
|
void |
clearTips()
Clears the 'tips' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
ServerTotalStats |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getEmployeeId()
Employee corresponding to these stats
|
String |
getEmployeeName() |
protected GenericClient |
getGenericClient() |
BatchTotalType |
getGiftCardCashOuts() |
BatchTotalType |
getGiftCardLoads() |
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.
|
BatchTotalType |
getNet() |
BatchTotalType |
getRefunds() |
BatchTotalType |
getSales() |
BatchTotalType |
getTax() |
BatchTotalType |
getTips() |
boolean |
hasEmployeeId()
Checks whether the 'employeeId' field has been set, however the value could be null
|
boolean |
hasEmployeeName()
Checks whether the 'employeeName' field has been set, however the value could be null
|
boolean |
hasGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field has been set, however the value could be null
|
boolean |
hasGiftCardLoads()
Checks whether the 'giftCardLoads' field has been set, however the value could be null
|
boolean |
hasNet()
Checks whether the 'net' field has been set, however the value could be null
|
boolean |
hasRefunds()
Checks whether the 'refunds' field has been set, however the value could be null
|
boolean |
hasSales()
Checks whether the 'sales' field has been set, however the value could be null
|
boolean |
hasTax()
Checks whether the 'tax' field has been set, however the value could be null
|
boolean |
hasTips()
Checks whether the 'tips' field has been set, however the value could be null
|
boolean |
isNotNullEmployeeId()
Checks whether the 'employeeId' field is set and is not null
|
boolean |
isNotNullEmployeeName()
Checks whether the 'employeeName' field is set and is not null
|
boolean |
isNotNullGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field is set and is not null
|
boolean |
isNotNullGiftCardLoads()
Checks whether the 'giftCardLoads' field is set and is not null
|
boolean |
isNotNullNet()
Checks whether the 'net' field is set and is not null
|
boolean |
isNotNullRefunds()
Checks whether the 'refunds' field is set and is not null
|
boolean |
isNotNullSales()
Checks whether the 'sales' field is set and is not null
|
boolean |
isNotNullTax()
Checks whether the 'tax' field is set and is not null
|
boolean |
isNotNullTips()
Checks whether the 'tips' field is set and is not null
|
void |
mergeChanges(ServerTotalStats 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.
|
ServerTotalStats |
setEmployeeId(String employeeId)
Sets the field 'employeeId'.
|
ServerTotalStats |
setEmployeeName(String employeeName)
Sets the field 'employeeName'.
|
ServerTotalStats |
setGiftCardCashOuts(BatchTotalType giftCardCashOuts)
Sets the field 'giftCardCashOuts'.
|
ServerTotalStats |
setGiftCardLoads(BatchTotalType giftCardLoads)
Sets the field 'giftCardLoads'.
|
ServerTotalStats |
setNet(BatchTotalType net)
Sets the field 'net'.
|
ServerTotalStats |
setRefunds(BatchTotalType refunds)
Sets the field 'refunds'.
|
ServerTotalStats |
setSales(BatchTotalType sales)
Sets the field 'sales'.
|
ServerTotalStats |
setTax(BatchTotalType tax)
Sets the field 'tax'.
|
ServerTotalStats |
setTips(BatchTotalType tips)
Sets the field 'tips'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<ServerTotalStats> CREATOR
public static final JSONifiable.Creator<ServerTotalStats> JSON_CREATOR
public ServerTotalStats()
protected ServerTotalStats(boolean noInit)
public ServerTotalStats(String json) throws IllegalArgumentException
IllegalArgumentException
public ServerTotalStats(JSONObject jsonObject)
public ServerTotalStats(ServerTotalStats src)
public String getEmployeeId()
public String getEmployeeName()
public BatchTotalType getSales()
public BatchTotalType getRefunds()
public BatchTotalType getNet()
public BatchTotalType getGiftCardLoads()
public BatchTotalType getGiftCardCashOuts()
public BatchTotalType getTax()
public BatchTotalType getTips()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullEmployeeId()
public boolean isNotNullEmployeeName()
public boolean isNotNullSales()
public boolean isNotNullRefunds()
public boolean isNotNullNet()
public boolean isNotNullGiftCardLoads()
public boolean isNotNullGiftCardCashOuts()
public boolean isNotNullTax()
public boolean isNotNullTips()
public boolean hasEmployeeId()
public boolean hasEmployeeName()
public boolean hasSales()
public boolean hasRefunds()
public boolean hasNet()
public boolean hasGiftCardLoads()
public boolean hasGiftCardCashOuts()
public boolean hasTax()
public boolean hasTips()
public ServerTotalStats setEmployeeId(String employeeId)
public ServerTotalStats setEmployeeName(String employeeName)
public ServerTotalStats setSales(BatchTotalType sales)
public ServerTotalStats setRefunds(BatchTotalType refunds)
public ServerTotalStats setNet(BatchTotalType net)
public ServerTotalStats setGiftCardLoads(BatchTotalType giftCardLoads)
public ServerTotalStats setGiftCardCashOuts(BatchTotalType giftCardCashOuts)
public ServerTotalStats setTax(BatchTotalType tax)
public ServerTotalStats setTips(BatchTotalType tips)
public void clearEmployeeId()
public void clearEmployeeName()
public void clearSales()
public void clearRefunds()
public void clearNet()
public void clearGiftCardLoads()
public void clearGiftCardCashOuts()
public void clearTax()
public void clearTips()
public boolean containsChanges()
public void resetChangeLog()
public ServerTotalStats copyChanges()
public void mergeChanges(ServerTotalStats src)