The Android Developer Challenge is back! Submit your idea before December 2.

DateValidatorPointForward

public class DateValidatorPointForward
extends Object implements CalendarConstraints.DateValidator

java.lang.Object
   ↳ com.google.android.material.datepicker.DateValidatorPointForward


A CalendarConstraints.DateValidator that enables dates from a given point forward. Defaults to the current moment in device time forward using now(), but can be set to any point, as UTC milliseconds, using from(long).

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<DateValidatorPointForward> CREATOR

Part of Parcelable requirements.

Public methods

int describeContents()
boolean equals(Object o)
static DateValidatorPointForward from(long point)

Returns a CalendarConstraints.DateValidator which enables days from point, in UTC milliseconds, forward.

int hashCode()
boolean isValid(long date)

Returns true if the provided date is enabled.

static DateValidatorPointForward now()

Returns a CalendarConstraints.DateValidator enabled from the current moment in device time forward.

void writeToParcel(Parcel dest, int flags)

Inherited methods

From class java.lang.Object
From interface com.google.android.material.datepicker.CalendarConstraints.DateValidator
From interface android.os.Parcelable

Fields

CREATOR

Creator<DateValidatorPointForward> CREATOR

Part of Parcelable requirements. Do not use.

Public methods

describeContents

int describeContents ()

Returns
int

equals

boolean equals (Object o)

Parameters
o Object

Returns
boolean

from

DateValidatorPointForward from (long point)

Returns a CalendarConstraints.DateValidator which enables days from point, in UTC milliseconds, forward.

Parameters
point long

Returns
DateValidatorPointForward

hashCode

int hashCode ()

Returns
int

isValid

boolean isValid (long date)

Returns true if the provided date is enabled.

Parameters
date long

Returns
boolean

now

DateValidatorPointForward now ()

Returns a CalendarConstraints.DateValidator enabled from the current moment in device time forward.

Returns
DateValidatorPointForward

writeToParcel

void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int