public class EMIDetails extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
EMIDetails.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<EMIDetails> |
CREATOR |
static JSONifiable.Creator<EMIDetails> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
EMIDetails()
Constructs a new empty instance.
|
protected |
EMIDetails(boolean noInit)
Constructs a new empty instance.
|
|
EMIDetails(EMIDetails src)
Constructs a new instance that is a deep copy of the source instance.
|
|
EMIDetails(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.
|
|
EMIDetails(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return false
|
void |
clearEmiAmount()
Clears the 'emiAmount' field, the 'has' method for this field will now return false
|
void |
clearFees()
Clears the 'fees' field, the 'has' method for this field will now return false
|
void |
clearInterest()
Clears the 'interest' field, the 'has' method for this field will now return false
|
void |
clearInterestRate()
Clears the 'interestRate' field, the 'has' method for this field will now return false
|
void |
clearLenderLoanId()
Clears the 'lenderLoanId' field, the 'has' method for this field will now return false
|
void |
clearLenderName()
Clears the 'lenderName' field, the 'has' method for this field will now return false
|
void |
clearOfferCashback()
Clears the 'offerCashback' field, the 'has' method for this field will now return false
|
void |
clearTenure()
Clears the 'tenure' field, the 'has' method for this field will now return false
|
void |
clearTotalPayable()
Clears the 'totalPayable' field, the 'has' method for this field will now return false
|
void |
clearTranAmount()
Clears the 'tranAmount' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
EMIDetails |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getDiscountAmount()
This field contains discount amount provided for EMI
|
String |
getEmiAmount()
This field contains EMI amount per month
|
String |
getFees()
This field contains processing fee charged for EMI
|
protected GenericClient |
getGenericClient() |
String |
getInterest()
This field contains interest amount charged as part of EMI
|
String |
getInterestRate()
This field contains interest rate charged as part of EMI
|
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.
|
String |
getLenderLoanId()
This field contains lender loan id for the EMI
|
String |
getLenderName()
This field contains the EMI lender name
|
String |
getOfferCashback()
This field contains offer cashback amount provided for EMI
|
String |
getTenure()
This field contains total EMI tenure
|
String |
getTotalPayable()
This field contains total payable amount i.e.
|
String |
getTranAmount()
This field contains total transaction amount
|
boolean |
hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be null
|
boolean |
hasEmiAmount()
Checks whether the 'emiAmount' field has been set, however the value could be null
|
boolean |
hasFees()
Checks whether the 'fees' field has been set, however the value could be null
|
boolean |
hasInterest()
Checks whether the 'interest' field has been set, however the value could be null
|
boolean |
hasInterestRate()
Checks whether the 'interestRate' field has been set, however the value could be null
|
boolean |
hasLenderLoanId()
Checks whether the 'lenderLoanId' field has been set, however the value could be null
|
boolean |
hasLenderName()
Checks whether the 'lenderName' field has been set, however the value could be null
|
boolean |
hasOfferCashback()
Checks whether the 'offerCashback' field has been set, however the value could be null
|
boolean |
hasTenure()
Checks whether the 'tenure' field has been set, however the value could be null
|
boolean |
hasTotalPayable()
Checks whether the 'totalPayable' field has been set, however the value could be null
|
boolean |
hasTranAmount()
Checks whether the 'tranAmount' field has been set, however the value could be null
|
boolean |
isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not null
|
boolean |
isNotNullEmiAmount()
Checks whether the 'emiAmount' field is set and is not null
|
boolean |
isNotNullFees()
Checks whether the 'fees' field is set and is not null
|
boolean |
isNotNullInterest()
Checks whether the 'interest' field is set and is not null
|
boolean |
isNotNullInterestRate()
Checks whether the 'interestRate' field is set and is not null
|
boolean |
isNotNullLenderLoanId()
Checks whether the 'lenderLoanId' field is set and is not null
|
boolean |
isNotNullLenderName()
Checks whether the 'lenderName' field is set and is not null
|
boolean |
isNotNullOfferCashback()
Checks whether the 'offerCashback' field is set and is not null
|
boolean |
isNotNullTenure()
Checks whether the 'tenure' field is set and is not null
|
boolean |
isNotNullTotalPayable()
Checks whether the 'totalPayable' field is set and is not null
|
boolean |
isNotNullTranAmount()
Checks whether the 'tranAmount' field is set and is not null
|
void |
mergeChanges(EMIDetails 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.
|
EMIDetails |
setDiscountAmount(String discountAmount)
Sets the field 'discountAmount'.
|
EMIDetails |
setEmiAmount(String emiAmount)
Sets the field 'emiAmount'.
|
EMIDetails |
setFees(String fees)
Sets the field 'fees'.
|
EMIDetails |
setInterest(String interest)
Sets the field 'interest'.
|
EMIDetails |
setInterestRate(String interestRate)
Sets the field 'interestRate'.
|
EMIDetails |
setLenderLoanId(String lenderLoanId)
Sets the field 'lenderLoanId'.
|
EMIDetails |
setLenderName(String lenderName)
Sets the field 'lenderName'.
|
EMIDetails |
setOfferCashback(String offerCashback)
Sets the field 'offerCashback'.
|
EMIDetails |
setTenure(String tenure)
Sets the field 'tenure'.
|
EMIDetails |
setTotalPayable(String totalPayable)
Sets the field 'totalPayable'.
|
EMIDetails |
setTranAmount(String tranAmount)
Sets the field 'tranAmount'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<EMIDetails> CREATOR
public static final JSONifiable.Creator<EMIDetails> JSON_CREATOR
public EMIDetails()
protected EMIDetails(boolean noInit)
public EMIDetails(String json) throws IllegalArgumentException
IllegalArgumentException
public EMIDetails(JSONObject jsonObject)
public EMIDetails(EMIDetails src)
public String getLenderName()
public String getTenure()
public String getInterestRate()
public String getInterest()
public String getEmiAmount()
public String getLenderLoanId()
public String getFees()
public String getDiscountAmount()
public String getOfferCashback()
public String getTranAmount()
public String getTotalPayable()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullLenderName()
public boolean isNotNullTenure()
public boolean isNotNullInterestRate()
public boolean isNotNullInterest()
public boolean isNotNullEmiAmount()
public boolean isNotNullLenderLoanId()
public boolean isNotNullFees()
public boolean isNotNullDiscountAmount()
public boolean isNotNullOfferCashback()
public boolean isNotNullTranAmount()
public boolean isNotNullTotalPayable()
public boolean hasLenderName()
public boolean hasTenure()
public boolean hasInterestRate()
public boolean hasInterest()
public boolean hasEmiAmount()
public boolean hasLenderLoanId()
public boolean hasFees()
public boolean hasDiscountAmount()
public boolean hasOfferCashback()
public boolean hasTranAmount()
public boolean hasTotalPayable()
public EMIDetails setLenderName(String lenderName)
public EMIDetails setTenure(String tenure)
public EMIDetails setInterestRate(String interestRate)
public EMIDetails setInterest(String interest)
public EMIDetails setEmiAmount(String emiAmount)
public EMIDetails setLenderLoanId(String lenderLoanId)
public EMIDetails setFees(String fees)
public EMIDetails setDiscountAmount(String discountAmount)
public EMIDetails setOfferCashback(String offerCashback)
public EMIDetails setTranAmount(String tranAmount)
public EMIDetails setTotalPayable(String totalPayable)
public void clearLenderName()
public void clearTenure()
public void clearInterestRate()
public void clearInterest()
public void clearEmiAmount()
public void clearLenderLoanId()
public void clearFees()
public void clearDiscountAmount()
public void clearOfferCashback()
public void clearTranAmount()
public void clearTotalPayable()
public boolean containsChanges()
public void resetChangeLog()
public EMIDetails copyChanges()
public void mergeChanges(EMIDetails src)