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