@Documented @Constraint(validatedBy={MinutePrecisionValidator.ForDate.class,MinutePrecisionValidator.ForCalendar.class,MinutePrecisionValidator.ForInstant.class,MinutePrecisionValidator.ForTemporalAccessor.class}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=MinutePrecision.List.class) public @interface MinutePrecision
object
, validates that object.second == 0 && object.nanosecond == 0
.
Supported types are:
Date
Calendar
Instant
TemporalAccessor
, as long as the implementation supports both ChronoField.SECOND_OF_MINUTE
and
ChronoField.NANO_OF_SECOND
as argument TemporalAccessor.get(TemporalField)
null
elements are considered valid.
Copyright © 2021–2022. All rights reserved.