Interface ComparableFunction<T,R extends Comparable<R>>

All Known Subinterfaces:
BuildableComparableFunction<T,R>, BuildableComparableOptionalFunction<T,R>, BuildableStringFunction<T>, BuildableStringOptionalFunction<T>

public interface ComparableFunction<T,R extends Comparable<R>>
  • Method Summary

    Modifier and Type
    Method
    Description
    is(R test)
    Returns a predicate that tests the value generated by this for equality with the supplied constant.
    Returns a predicate that tests the value generated by this to see if it is greater than the supplied constant.
    Returns a predicate that tests the value generated by this to see if it is greater than or equal to the supplied constant.
    isLessThan(R test)
    Returns a predicate that tests the value generated by this to see if it is less than the supplied constant.
    Returns a predicate that tests the value generated by this to see if it is less than or equal to the supplied constant.
  • Method Details

    • is

      Predicate<T> is(R test)
      Returns a predicate that tests the value generated by this for equality with the supplied constant.

      Equality is defined by the behavior of the Objects.deepEquals(java.lang.Object, java.lang.Object) method.

      Parameters:
      test - value to test against
      Returns:
      an equality predicate
    • isGreaterThan

      Predicate<T> isGreaterThan(R test)
      Returns a predicate that tests the value generated by this to see if it is greater than the supplied constant.
      Parameters:
      test - value to test against
      Returns:
      a greater than predicate
    • isLessThan

      Predicate<T> isLessThan(R test)
      Returns a predicate that tests the value generated by this to see if it is less than the supplied constant.
      Parameters:
      test - value to test against
      Returns:
      a less than predicate
    • isGreaterThanOrEqualTo

      Predicate<T> isGreaterThanOrEqualTo(R test)
      Returns a predicate that tests the value generated by this to see if it is greater than or equal to the supplied constant.
      Parameters:
      test - value to test against
      Returns:
      a greater than or equal to predicate
    • isLessThanOrEqualTo

      Predicate<T> isLessThanOrEqualTo(R test)
      Returns a predicate that tests the value generated by this to see if it is less than or equal to the supplied constant.
      Parameters:
      test - value to test against
      Returns:
      a less than or equal to predicate