CalendarBounds

public final class CalendarBounds
extends Object implements Parcelable

java.lang.Object
   ↳ com.google.android.material.picker.CalendarBounds


Used to limit the display range of MaterialCalendar and set a starting Month.

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<CalendarBounds> CREATOR

Parcelable.Creator

Public methods

static CalendarBounds create(Month start, Month end)

Creates a CalendarBounds instance that opens on today if it is within the bounds or start if today is not within the bounds.

static CalendarBounds create(Month start, Month end, Month current)

Creates a CalendarBounds instance which opens onto current and is bounded between start and end.

int describeContents()
boolean equals(Object o)
Month getCurrent()

Returns the current Month within this set of bounds.

Month getEnd()

Returns the latest Month allowed by this set of bounds.

Month getStart()

Returns the earliest Month allowed by this set of bounds.

int hashCode()
void writeToParcel(Parcel dest, int flags)

Inherited methods

From class java.lang.Object
From interface android.os.Parcelable

Fields

CREATOR

Creator<CalendarBounds> CREATOR

Parcelable.Creator

Public methods

create

CalendarBounds create (Month start, 
                Month end)

Creates a CalendarBounds instance that opens on today if it is within the bounds or start if today is not within the bounds.

Parameters
start Month

end Month

Returns
CalendarBounds

create

CalendarBounds create (Month start, 
                Month end, 
                Month current)

Creates a CalendarBounds instance which opens onto current and is bounded between start and end.

Parameters
start Month

end Month

current Month

Returns
CalendarBounds

describeContents

int describeContents ()

Returns
int

equals

boolean equals (Object o)

Parameters
o Object

Returns
boolean

getCurrent

Month getCurrent ()

Returns the current Month within this set of bounds.

Returns
Month

getEnd

Month getEnd ()

Returns the latest Month allowed by this set of bounds.

Returns
Month

getStart

Month getStart ()

Returns the earliest Month allowed by this set of bounds.

Returns
Month

hashCode

int hashCode ()

Returns
int

writeToParcel

void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int