Constructors

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

Functions

Link copied to clipboard
public void clearCardholderName()
Clears the 'cardholderName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearEncrypted()
Clears the 'encrypted' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearExp()
Clears the 'exp' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearFirst6()
Clears the 'first6' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearFirstName()
Clears the 'firstName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearLast4()
Clears the 'last4' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearLastName()
Clears the 'lastName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearMaskedTrack1()
Clears the 'maskedTrack1' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearMaskedTrack2()
Clears the 'maskedTrack2' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearMaskedTrack3()
Clears the 'maskedTrack3' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearPan()
Clears the 'pan' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTrack1()
Clears the 'track1' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTrack2()
Clears the 'track2' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTrack3()
Clears the 'track3' 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 final int describeContents()
Link copied to clipboard
public final Bundle getBundle()
Link copied to clipboard
The cardholderName data from the card.
Link copied to clipboard
Indicates if the data is encrypted.
Link copied to clipboard
public String getExp()
The exp data from the card.
Link copied to clipboard
public String getFirst6()
The first6 data from the card.
Link copied to clipboard
The firstName data from the card.
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 getLast4()
The last4 data from the card.
Link copied to clipboard
The lastName data from the card.
Link copied to clipboard
The track1 data from the card.
Link copied to clipboard
The track2 data from the card.
Link copied to clipboard
The track3 data from the card.
Link copied to clipboard
public String getPan()
The pan data from the card.
Link copied to clipboard
public String getTrack1()
The track1 data from the card.
Link copied to clipboard
public String getTrack2()
The track2 data from the card.
Link copied to clipboard
public String getTrack3()
The track3 data from the card.
Link copied to clipboard
public boolean hasCardholderName()
Checks whether the 'cardholderName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasEncrypted()
Checks whether the 'encrypted' field has been set, however the value could be null
Link copied to clipboard
public boolean hasExp()
Checks whether the 'exp' field has been set, however the value could be null
Link copied to clipboard
public boolean hasFirst6()
Checks whether the 'first6' field has been set, however the value could be null
Link copied to clipboard
public boolean hasFirstName()
Checks whether the 'firstName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasLast4()
Checks whether the 'last4' field has been set, however the value could be null
Link copied to clipboard
public boolean hasLastName()
Checks whether the 'lastName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasMaskedTrack1()
Checks whether the 'maskedTrack1' field has been set, however the value could be null
Link copied to clipboard
public boolean hasMaskedTrack2()
Checks whether the 'maskedTrack2' field has been set, however the value could be null
Link copied to clipboard
public boolean hasMaskedTrack3()
Checks whether the 'maskedTrack3' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPan()
Checks whether the 'pan' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTrack1()
Checks whether the 'track1' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTrack2()
Checks whether the 'track2' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTrack3()
Checks whether the 'track3' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotNullCardholderName()
Checks whether the 'cardholderName' field is set and is not null
Link copied to clipboard
public boolean isNotNullEncrypted()
Checks whether the 'encrypted' field is set and is not null
Link copied to clipboard
public boolean isNotNullExp()
Checks whether the 'exp' field is set and is not null
Link copied to clipboard
public boolean isNotNullFirst6()
Checks whether the 'first6' field is set and is not null
Link copied to clipboard
public boolean isNotNullFirstName()
Checks whether the 'firstName' field is set and is not null
Link copied to clipboard
public boolean isNotNullLast4()
Checks whether the 'last4' field is set and is not null
Link copied to clipboard
public boolean isNotNullLastName()
Checks whether the 'lastName' field is set and is not null
Link copied to clipboard
public boolean isNotNullMaskedTrack1()
Checks whether the 'maskedTrack1' field is set and is not null
Link copied to clipboard
public boolean isNotNullMaskedTrack2()
Checks whether the 'maskedTrack2' field is set and is not null
Link copied to clipboard
public boolean isNotNullMaskedTrack3()
Checks whether the 'maskedTrack3' field is set and is not null
Link copied to clipboard
public boolean isNotNullPan()
Checks whether the 'pan' field is set and is not null
Link copied to clipboard
public boolean isNotNullTrack1()
Checks whether the 'track1' field is set and is not null
Link copied to clipboard
public boolean isNotNullTrack2()
Checks whether the 'track2' field is set and is not null
Link copied to clipboard
public boolean isNotNullTrack3()
Checks whether the 'track3' field is set and is not null
Link copied to clipboard
public void mergeChanges(CardData 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 CardData setCardholderName(String cardholderName)
Sets the field 'cardholderName'.
Link copied to clipboard
public CardData setEncrypted(Boolean encrypted)
Sets the field 'encrypted'.
Link copied to clipboard
public CardData setExp(String exp)
Sets the field 'exp'.
Link copied to clipboard
public CardData setFirst6(String first6)
Sets the field 'first6'.
Link copied to clipboard
public CardData setFirstName(String firstName)
Sets the field 'firstName'.
Link copied to clipboard
public CardData setLast4(String last4)
Sets the field 'last4'.
Link copied to clipboard
public CardData setLastName(String lastName)
Sets the field 'lastName'.
Link copied to clipboard
public CardData setMaskedTrack1(String maskedTrack1)
Sets the field 'maskedTrack1'.
Link copied to clipboard
public CardData setMaskedTrack2(String maskedTrack2)
Sets the field 'maskedTrack2'.
Link copied to clipboard
public CardData setMaskedTrack3(String maskedTrack3)
Sets the field 'maskedTrack3'.
Link copied to clipboard
public CardData setPan(String pan)
Sets the field 'pan'.
Link copied to clipboard
public CardData setTrack1(String track1)
Sets the field 'track1'.
Link copied to clipboard
public CardData setTrack2(String track2)
Sets the field 'track2'.
Link copied to clipboard
public CardData setTrack3(String track3)
Sets the field 'track3'.
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)