Interface BuildableToIntFunction<T>

All Superinterfaces:
ToIntFunction<T>

public interface BuildableToIntFunction<T> extends ToIntFunction<T>
A function of one argument that generates an int result, and supports building derived functional types.
  • Method Details

    • add

      default BuildableToIntFunction<T> add(int operand)
      Returns a function that calculates the sum of operand and this.
      Parameters:
      operand - the value to add
      Returns:
      a summing function
    • subtract

      default BuildableToIntFunction<T> subtract(int operand)
      Returns a function that subtracts operand from this.
      Parameters:
      operand - the value to subtract
      Returns:
      a subtracting function
    • increment

      default BuildableToIntFunction<T> increment()
      Returns a function that increments this by one.
      Returns:
      an incrementing function
    • decrement

      default BuildableToIntFunction<T> decrement()
      Returns a function that decrements this by one.
      Returns:
      a decrementing function
    • multiply

      default BuildableToIntFunction<T> multiply(int multiplier)
      Returns a function that calculates the product of this and multiplier.
      Parameters:
      multiplier - the multiplier
      Returns:
      a multiplying function
    • divide

      default BuildableToIntFunction<T> divide(int divisor)
      Returns a function that calculates the quotient of this and divisor.
      Parameters:
      divisor - the divisor
      Returns:
      a dividing function
    • is

      default BuildablePredicate<T> is(int test)
      Returns a predicate that tests the value generated by this for equality with the supplied constant.
      Parameters:
      test - value to test against
      Returns:
      an equality predicate
    • isGreaterThan

      default BuildablePredicate<T> isGreaterThan(int 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

      default BuildablePredicate<T> isLessThan(int 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

      default BuildablePredicate<T> isGreaterThanOrEqualTo(int 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

      default BuildablePredicate<T> isLessThanOrEqualTo(int 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
    • asComparator

      default Comparator<T> asComparator()
      Returns a Comparator that orders objects using the integer values mapped by this function.
      Returns:
      a comparator that orders using the mapped values
    • boxed