CreditCardExpirationDate
A Parcelable
that
represents the Date passed back from Google Payment API.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Method Summary
int |
|
int |
getYear()
Gets the four-digit year of the date.
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
public int getMonth ()
Gets the month of the date.
Returns
- an integer value that ranges from 1 to 12 and represents the month.
public int getYear ()
Gets the four-digit year of the date.
Returns
- a four digit integer value that represents the year.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`CreditCardExpirationDate` is a Parcelable object representing a credit card's expiration date, returned from the Google Payment API."],["It provides methods to access the expiration month (`getMonth()`) and year (`getYear()`)."],["The month is represented as an integer between 1 and 12, while the year is a four-digit integer."]]],["`CreditCardExpirationDate` is a Parcelable class from the Google Payment API. It allows retrieving the expiration date of a credit card. Key actions include getting the expiration month via `getMonth()`, which returns an integer from 1 to 12, and getting the four-digit expiration year via `getYear()`. The class implements the Parcelable interface methods `describeContents()` and `writeToParcel()` and contains constant for `CONTENTS_FILE_DESCRIPTOR` and `PARCELABLE_WRITE_RETURN_VALUE`.\n"]]