Builds a validator that succeeds if the provided value is within the specified tolerance of a particular temporal.
Builds a validator that succeeds if the provided value is within the specified tolerance of a particular
temporal. The duration is rendered as ISO-8601 by default, for example "PT168H"
:
tomorrow is within( Duration.ofDays( 7L ) ).of( now )
Builds a validator that succeeds if the provided value is within the specified tolerance of a particular temporal.
Builds a validator that succeeds if the provided value is within the specified tolerance of a particular temporal. For example:
tomorrow is within( Duration.ofDays( 7L ), "7 days" ).of( now )
Builds a validator that succeeds if the provided value is within the specified tolerance of a particular temporal.
Builds a validator that succeeds if the provided value is within the specified tolerance of a particular temporal. For example:
tomorrow is within( 1L, ChronoUnit.WEEKS ).of( now )
Extends the Accord DSL with additional
within
operations over temporals.