PredicateComparator<T> extension

Extension on Comparator providing relational comparison predicates.

on

Methods

equalTo(T a, T b) → bool

Available on Comparator<T>, provided by the PredicateComparator extension

Whether a equals b.
greaterThan(T a, T b) → bool

Available on Comparator<T>, provided by the PredicateComparator extension

Whether a is greater than b.
greaterThanOrEqualTo(T a, T b) → bool

Available on Comparator<T>, provided by the PredicateComparator extension

Whether a is greater than or equal to b.
lessThan(T a, T b) → bool

Available on Comparator<T>, provided by the PredicateComparator extension

Whether a is less than b.
lessThanOrEqualTo(T a, T b) → bool

Available on Comparator<T>, provided by the PredicateComparator extension

Whether a is less than or equal to b.
notEqualTo(T a, T b) → bool

Available on Comparator<T>, provided by the PredicateComparator extension

Whether a is not equal to b.