Class Check.Temporals
java.lang.Object
atlantafx.validation.Check.Temporals
Predicates for temporal types, all of which implement
Comparable.
Semantically equivalent to Check.Comparables.lessThan(T), Check.Comparables.greaterThan(T),
named for readability.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
Predicate<@Nullable T> isAfter(@Nullable T other) Checks if a value is strictly after another value.static <T extends Comparable<? super T>>
Predicate<@Nullable T> isAfterOrEqual(@Nullable T other) Checks if a value is after or equal to another value.static <T extends Comparable<? super T>>
Predicate<@Nullable T> isBefore(@Nullable T other) Checks if a value is strictly before another value.static <T extends Comparable<? super T>>
Predicate<@Nullable T> isBeforeOrEqual(@Nullable T other) Checks if a value is before or equal to another value.
-
Method Details
-
isBefore
Checks if a value is strictly before another value. -
isAfter
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.
-