public class BatchDetail extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
BatchDetail.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<BatchDetail> |
CREATOR |
static JSONifiable.Creator<BatchDetail> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
BatchDetail()
Constructs a new empty instance.
|
|
BatchDetail(BatchDetail src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
BatchDetail(boolean noInit)
Constructs a new empty instance.
|
|
BatchDetail(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.
|
|
BatchDetail(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBatchTotals()
Clears the 'batchTotals' field, the 'has' method for this field will now return false
|
void |
clearCardlessTotals()
Clears the 'cardlessTotals' field, the 'has' method for this field will now return false
|
void |
clearCardTotals()
Clears the 'cardTotals' field, the 'has' method for this field will now return false
|
void |
clearDeviceTotals()
Clears the 'deviceTotals' field, the 'has' method for this field will now return false
|
void |
clearEndpointTotals()
Clears the 'endpointTotals' field, the 'has' method for this field will now return false
|
void |
clearOpenTabs()
Clears the 'openTabs' field, the 'has' method for this field will now return false
|
void |
clearOpenTips()
Clears the 'openTips' field, the 'has' method for this field will now return false
|
void |
clearServerTotals()
Clears the 'serverTotals' field, the 'has' method for this field will now return false
|
void |
clearTerminalId()
Clears the 'terminalId' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
BatchDetail |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
BatchTotalStats |
getBatchTotals() |
List<BatchCardlessTotal> |
getCardlessTotals() |
List<BatchCardTotal> |
getCardTotals() |
List<DeviceTotalStats> |
getDeviceTotals() |
List<EndpointTotalStats> |
getEndpointTotals() |
protected GenericClient |
getGenericClient() |
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 |
getOpenTabs()
Number of open tabs.
|
Long |
getOpenTips()
Number of open tips.
|
List<ServerTotalStats> |
getServerTotals() |
String |
getTerminalId()
Terminal ID.
|
boolean |
hasBatchTotals()
Checks whether the 'batchTotals' field has been set, however the value could be null
|
boolean |
hasCardlessTotals()
Checks whether the 'cardlessTotals' field has been set, however the value could be null
|
boolean |
hasCardTotals()
Checks whether the 'cardTotals' field has been set, however the value could be null
|
boolean |
hasDeviceTotals()
Checks whether the 'deviceTotals' field has been set, however the value could be null
|
boolean |
hasEndpointTotals()
Checks whether the 'endpointTotals' field has been set, however the value could be null
|
boolean |
hasOpenTabs()
Checks whether the 'openTabs' field has been set, however the value could be null
|
boolean |
hasOpenTips()
Checks whether the 'openTips' field has been set, however the value could be null
|
boolean |
hasServerTotals()
Checks whether the 'serverTotals' field has been set, however the value could be null
|
boolean |
hasTerminalId()
Checks whether the 'terminalId' field has been set, however the value could be null
|
boolean |
isNotEmptyCardlessTotals()
Checks whether the 'cardlessTotals' field is set and is not null and is not empty
|
boolean |
isNotEmptyCardTotals()
Checks whether the 'cardTotals' field is set and is not null and is not empty
|
boolean |
isNotEmptyDeviceTotals()
Checks whether the 'deviceTotals' field is set and is not null and is not empty
|
boolean |
isNotEmptyEndpointTotals()
Checks whether the 'endpointTotals' field is set and is not null and is not empty
|
boolean |
isNotEmptyServerTotals()
Checks whether the 'serverTotals' field is set and is not null and is not empty
|
boolean |
isNotNullBatchTotals()
Checks whether the 'batchTotals' field is set and is not null
|
boolean |
isNotNullCardlessTotals()
Checks whether the 'cardlessTotals' field is set and is not null
|
boolean |
isNotNullCardTotals()
Checks whether the 'cardTotals' field is set and is not null
|
boolean |
isNotNullDeviceTotals()
Checks whether the 'deviceTotals' field is set and is not null
|
boolean |
isNotNullEndpointTotals()
Checks whether the 'endpointTotals' field is set and is not null
|
boolean |
isNotNullOpenTabs()
Checks whether the 'openTabs' field is set and is not null
|
boolean |
isNotNullOpenTips()
Checks whether the 'openTips' field is set and is not null
|
boolean |
isNotNullServerTotals()
Checks whether the 'serverTotals' field is set and is not null
|
boolean |
isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not null
|
void |
mergeChanges(BatchDetail 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.
|
BatchDetail |
setBatchTotals(BatchTotalStats batchTotals)
Sets the field 'batchTotals'.
|
BatchDetail |
setCardlessTotals(List<BatchCardlessTotal> cardlessTotals)
Sets the field 'cardlessTotals'.
|
BatchDetail |
setCardTotals(List<BatchCardTotal> cardTotals)
Sets the field 'cardTotals'.
|
BatchDetail |
setDeviceTotals(List<DeviceTotalStats> deviceTotals)
Sets the field 'deviceTotals'.
|
BatchDetail |
setEndpointTotals(List<EndpointTotalStats> endpointTotals)
Sets the field 'endpointTotals'.
|
BatchDetail |
setOpenTabs(Long openTabs)
Sets the field 'openTabs'.
|
BatchDetail |
setOpenTips(Long openTips)
Sets the field 'openTips'.
|
BatchDetail |
setServerTotals(List<ServerTotalStats> serverTotals)
Sets the field 'serverTotals'.
|
BatchDetail |
setTerminalId(String terminalId)
Sets the field 'terminalId'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<BatchDetail> CREATOR
public static final JSONifiable.Creator<BatchDetail> JSON_CREATOR
public BatchDetail()
protected BatchDetail(boolean noInit)
public BatchDetail(String json) throws IllegalArgumentException
IllegalArgumentException
public BatchDetail(JSONObject jsonObject)
public BatchDetail(BatchDetail src)
public String getTerminalId()
public BatchTotalStats getBatchTotals()
public List<ServerTotalStats> getServerTotals()
public List<BatchCardTotal> getCardTotals()
public List<BatchCardlessTotal> getCardlessTotals()
public List<DeviceTotalStats> getDeviceTotals()
public List<EndpointTotalStats> getEndpointTotals()
public Long getOpenTips()
public Long getOpenTabs()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullTerminalId()
public boolean isNotNullBatchTotals()
public boolean isNotNullServerTotals()
public boolean isNotEmptyServerTotals()
public boolean isNotNullCardTotals()
public boolean isNotEmptyCardTotals()
public boolean isNotNullCardlessTotals()
public boolean isNotEmptyCardlessTotals()
public boolean isNotNullDeviceTotals()
public boolean isNotEmptyDeviceTotals()
public boolean isNotNullEndpointTotals()
public boolean isNotEmptyEndpointTotals()
public boolean isNotNullOpenTips()
public boolean isNotNullOpenTabs()
public boolean hasTerminalId()
public boolean hasBatchTotals()
public boolean hasServerTotals()
public boolean hasCardTotals()
public boolean hasCardlessTotals()
public boolean hasDeviceTotals()
public boolean hasEndpointTotals()
public boolean hasOpenTips()
public boolean hasOpenTabs()
public BatchDetail setTerminalId(String terminalId)
public BatchDetail setBatchTotals(BatchTotalStats batchTotals)
public BatchDetail setServerTotals(List<ServerTotalStats> serverTotals)
public BatchDetail setCardTotals(List<BatchCardTotal> cardTotals)
public BatchDetail setCardlessTotals(List<BatchCardlessTotal> cardlessTotals)
public BatchDetail setDeviceTotals(List<DeviceTotalStats> deviceTotals)
public BatchDetail setEndpointTotals(List<EndpointTotalStats> endpointTotals)
public BatchDetail setOpenTips(Long openTips)
public BatchDetail setOpenTabs(Long openTabs)
public void clearTerminalId()
public void clearBatchTotals()
public void clearServerTotals()
public void clearCardTotals()
public void clearCardlessTotals()
public void clearDeviceTotals()
public void clearEndpointTotals()
public void clearOpenTips()
public void clearOpenTabs()
public boolean containsChanges()
public void resetChangeLog()
public BatchDetail copyChanges()
public void mergeChanges(BatchDetail src)