Package org.apache.bval.constraints
Class PastValidator<T extends Comparable<T>>
- java.lang.Object
-
- org.apache.bval.constraints.TimeValidator<jakarta.validation.constraints.Past,T>
-
- org.apache.bval.constraints.PastValidator<T>
-
- Type Parameters:
T
- validated type
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Past,T>
- Direct Known Subclasses:
PastValidator.ForCalendar
,PastValidator.ForChronoLocalDate
,PastValidator.ForChronoLocalDateTime
,PastValidator.ForChronoZonedDateTime
,PastValidator.ForDate
,PastValidator.ForInstant
,PastValidator.ForLocalTime
,PastValidator.ForMonthDay
,PastValidator.ForOffsetDateTime
,PastValidator.ForOffsetTime
,PastValidator.ForYear
,PastValidator.ForYearMonth
public abstract class PastValidator<T extends Comparable<T>> extends TimeValidator<jakarta.validation.constraints.Past,T>
Defines built-inConstraintValidator
implementations forPast
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PastValidator.ForCalendar
static class
PastValidator.ForChronoLocalDate
static class
PastValidator.ForChronoLocalDateTime
static class
PastValidator.ForChronoZonedDateTime
static class
PastValidator.ForDate
static class
PastValidator.ForInstant
static class
PastValidator.ForLocalTime
static class
PastValidator.ForMonthDay
static class
PastValidator.ForOffsetDateTime
static class
PastValidator.ForOffsetTime
static class
PastValidator.ForYear
static class
PastValidator.ForYearMonth
-
Field Summary
-
Fields inherited from class org.apache.bval.constraints.TimeValidator
CHRONO_LOCAL_DATE_COMPARATOR, CHRONO_LOCAL_DATE_TIME_COMPARATOR, CHRONO_ZONED_DATE_TIME_COMPARATOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PastValidator(Function<Clock,T> now)
protected
PastValidator(Function<Clock,T> now, Comparator<? super T> cmp)
-