Class DatePickerComponent.DateParts
- java.lang.Object
-
- com.yoti.mobile.android.common.ui.widgets.date.picker.DatePickerComponent.DateParts
-
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- DatePickerComponent
public static class DatePickerComponent.DateParts extends java.lang.Object implements android.os.ParcelableContains the following date parts:- Year
- Month - indexed from 0
- Day - day of month
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<DatePickerComponent.DateParts>CREATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(java.lang.Object obj)static DatePickerComponent.DatePartsfrom(DatePickerComponent.DateParts originalDateParts)Creates a new instance of aDatePickerComponent.DatePartsclass with the same values passed in via theDatePickerComponent.DatePartsparameterstatic DatePickerComponent.DatePartsfrom(java.util.Calendar originalDate)Creates aDatePickerComponent.DatePartsobject from the values specified in theCalendar.intgetDayOfMonth()intgetMonth()intgetYear()inthashCode()voidsetDayOfMonth(int dayOfMonth)voidsetMonth(int month)voidsetYear(int year)voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<DatePickerComponent.DateParts> CREATOR
-
-
Method Detail
-
getYear
public int getYear()
-
setYear
public void setYear(int year)
-
getMonth
public int getMonth()
-
setMonth
public void setMonth(int month)
-
getDayOfMonth
public int getDayOfMonth()
-
setDayOfMonth
public void setDayOfMonth(int dayOfMonth)
-
from
@NonNull public static DatePickerComponent.DateParts from(DatePickerComponent.DateParts originalDateParts)
Creates a new instance of aDatePickerComponent.DatePartsclass with the same values passed in via theDatePickerComponent.DatePartsparameter- Parameters:
originalDateParts- Contains the values that will be used to create the new instance.
-
from
@NonNull public static DatePickerComponent.DateParts from(java.util.Calendar originalDate)
Creates aDatePickerComponent.DatePartsobject from the values specified in theCalendar.- Parameters:
originalDate- The original calendar date.
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-