Teki
Rules

Future

Require a date or time strictly in the future.

Use future() on temporal fields to reject dates that are not after the current instant.

Teki schema = Teki.fromRules(
    temporal("scheduledAt").required().future()
);

Available on

  • temporal(...)

Annotation equivalent

import dev.ditsche.teki.annotation.Future;

public class AppointmentRequest {
    @Future
    private Instant scheduledAt;
}

On this page