LeanComparableExtensions<T> extension

similar to minComparable and maxComparable

on

Methods

isBetween(T min, T max, {bool? inclusiveMin, bool? inclusiveMax}) → bool

Available on Comparable<T>, provided by the LeanComparableExtensions extension

compares if this is between min and max
isEqualTo(T other) → bool

Available on Comparable<T>, provided by the LeanComparableExtensions extension

shorthand for: compareTo(other) == 0
isGreaterThan(T other) → bool

Available on Comparable<T>, provided by the LeanComparableExtensions extension

shorthand for: compareTo(other) > 0
isGreaterThanOrEqualTo(T other) → bool

Available on Comparable<T>, provided by the LeanComparableExtensions extension

shorthand for: compareTo(other) >= 0
isSmallerThan(T other) → bool

Available on Comparable<T>, provided by the LeanComparableExtensions extension

shorthand for: compareTo(other) < 0
isSmallerThanOrEqualTo(T other) → bool

Available on Comparable<T>, provided by the LeanComparableExtensions extension

shorthand for: compareTo(other) <= 0