Class Check.Temporals

java.lang.Object
atlantafx.validation.Check.Temporals
Enclosing class:
Check<T extends @Nullable Object>

public static final class Check.Temporals extends Object
Predicates for temporal types, all of which implement Comparable.

Semantically equivalent to Check.Comparables.lessThan(T), Check.Comparables.greaterThan(T), named for readability.

  • Method Details

    • isBefore

      public static <T extends Comparable<? super T>> Predicate<@Nullable T> isBefore(@Nullable T other)
      Checks if a value is strictly before another value.
    • isAfter

      public static <T extends Comparable<? super T>> Predicate<@Nullable T> isAfter(@Nullable T other)
      Checks if a value is strictly after another value.
    • isBeforeOrEqual

      public static <T extends Comparable<? super T>> Predicate<@Nullable T> isBeforeOrEqual(@Nullable T other)
      Checks if a value is before or equal to another value.
    • isAfterOrEqual

      public static <T extends Comparable<? super T>> Predicate<@Nullable T> isAfterOrEqual(@Nullable T other)
      Checks if a value is after or equal to another value.