Class ComparableUtils.ComparableCheckBuilder<A extends Comparable<A>>

    • Method Detail

      • between

        public boolean between​(A b,
                               A c)
        Checks if [b <= a <= c] or [b >= a >= c] where the a is object passed to ComparableUtils.is(A).
        Parameters:
        b - the object to compare to the base object
        c - the object to compare to the base object
        Returns:
        true if the base object is between b and c
      • betweenExclusive

        public boolean betweenExclusive​(A b,
                                        A c)
        Checks if (b < a < c) or (b > a > c) where the a is object passed to ComparableUtils.is(A).
        Parameters:
        b - the object to compare to the base object
        c - the object to compare to the base object
        Returns:
        true if the base object is between b and c and not equal to those