DateValidatorPointForward


Kotlin |Java

public class DateValidatorPointForward implements CalendarConstraints.DateValidator 


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 .

Summary

Constants

static final Creator<DateValidatorPointForward>

Part of android.os.Parcelable requirements.

Public methods

int
boolean
static DateValidatorPointForward
from(long point)

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

int
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)

Constants

CREATOR

public static final Creator<DateValidatorPointForward> CREATOR 

Part of android.os.Parcelable requirements. Do not use.

Public methods

describeContents

public int describeContents()

equals

public boolean equals(Object o)

from

public static DateValidatorPointForward from(long point)

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

hashCode

public int hashCode()

isValid

public boolean isValid(long date)

Returns true if the provided date is enabled.

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)

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026年05月14日 UTC.