CalendarConstraints.DateValidator

public interface CalendarConstraints.DateValidator 

Known direct subclasses
CompositeDateValidator

A DateValidator that accepts a list of Date Validators.

DateValidatorPointBackward

A CalendarConstraints.DateValidator that enables only dates before a given point.

DateValidatorPointForward

A CalendarConstraints.DateValidator that enables dates from a given point forward.


Used to determine whether calendar days are enabled.

Extends Parcelable in order to maintain the DateValidator across device configuration changes. Parcelable breaks when passed between processes.

Summary

Public methods

abstract boolean
isValid(long date)

Returns true if the provided date is enabled.

Public methods

isValid

abstract boolean isValid(long date)

Returns true if the provided date is enabled.

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 2025年10月28日 UTC.