public static class DatePickerComponent.DateParts
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<DatePickerComponent.DateParts> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
|
DateParts(int year,
int month,
int dayOfMonth) |
protected |
DateParts(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj) |
static DatePickerComponent.DateParts |
from(java.util.Calendar originalDate)
Creates a
DatePickerComponent.DateParts object from the values specified in the Calendar. |
static DatePickerComponent.DateParts |
from(DatePickerComponent.DateParts originalDateParts)
Creates a new instance of a
DatePickerComponent.DateParts class with the same values passed in via
the DatePickerComponent.DateParts parameter |
int |
getDayOfMonth() |
int |
getMonth() |
int |
getYear() |
int |
hashCode() |
void |
setDayOfMonth(int dayOfMonth) |
void |
setMonth(int month) |
void |
setYear(int year) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<DatePickerComponent.DateParts> CREATOR
public DateParts(int year,
int month,
int dayOfMonth)
protected DateParts(android.os.Parcel in)
public int getYear()
public void setYear(int year)
public int getMonth()
public void setMonth(int month)
public int getDayOfMonth()
public void setDayOfMonth(int dayOfMonth)
@NonNull public static DatePickerComponent.DateParts from(DatePickerComponent.DateParts originalDateParts)
DatePickerComponent.DateParts class with the same values passed in via
the DatePickerComponent.DateParts parameteroriginalDateParts - Contains the values that will be used to create the new
instance.@NonNull public static DatePickerComponent.DateParts from(java.util.Calendar originalDate)
DatePickerComponent.DateParts object from the values specified in the Calendar.originalDate - The original calendar date.public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object