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

int CONTENTS_FILE_DESCRIPTOR

int PARCELABLE_WRITE_RETURN_VALUE

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

Object clone()
boolean equals(Object arg0)
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()
abstract boolean isValid(long date)

Returns true if the provided date is enabled.

abstract int describeContents()
abstract void writeToParcel(Parcel arg0, int arg1)

Fields

CREATOR

public static final Creator<DateValidatorPointForward> CREATOR

Part of Parcelable requirements. Do not use.

Public methods

describeContents

public int describeContents ()

Returns
int

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

from

public static DateValidatorPointForward from (long point)

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

Parameters
point long

hashCode

public int hashCode ()

Returns
int

isValid

public boolean isValid (long date)

Returns true if the provided date is enabled.

Parameters
date long

Returns
boolean

now

public static DateValidatorPointForward now ()

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

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int