public interface BuildableToIntFunction<T>
extends java.util.function.ToIntFunction<T>
int
result, and
supports building derived functional types.Modifier and Type | Method and Description |
---|---|
default BuildableToIntFunction<T> |
add(int operand)
Returns a function that calculates the sum of
operand and
this . |
default java.util.Comparator<T> |
asComparator()
Returns a
Comparator that orders objects using the integer values
mapped by this function. |
default BuildableComparableFunction<T,java.lang.Integer> |
boxed() |
default BuildableToIntFunction<T> |
decrement()
Returns a function that decrements
this by one. |
default BuildableToIntFunction<T> |
divide(int divisor)
Returns a function that calculates the quotient of
this and
divisor . |
default BuildableToIntFunction<T> |
increment()
Returns a function that increments
this by one. |
default BuildablePredicate<T> |
is(int test)
Returns a predicate that tests the value generated by
this for
equality with the supplied constant. |
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. |
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. |
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. |
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. |
default BuildableToIntFunction<T> |
multiply(int multiplier)
Returns a function that calculates the product of
this and
multiplier . |
default BuildableToIntFunction<T> |
subtract(int operand)
Returns a function that subtracts
operand from this . |
default BuildableToIntFunction<T> add(int operand)
operand
and
this
.operand
- the value to adddefault BuildableToIntFunction<T> subtract(int operand)
operand
from this
.operand
- the value to subtractdefault BuildableToIntFunction<T> increment()
this
by one.default BuildableToIntFunction<T> decrement()
this
by one.default BuildableToIntFunction<T> multiply(int multiplier)
this
and
multiplier
.multiplier
- the multiplierdefault BuildableToIntFunction<T> divide(int divisor)
this
and
divisor
.divisor
- the divisordefault BuildablePredicate<T> is(int test)
this
for
equality with the supplied constant.test
- value to test againstdefault BuildablePredicate<T> isGreaterThan(int test)
this
to see
if it is greater than the supplied constant.test
- value to test againstdefault BuildablePredicate<T> isLessThan(int test)
this
to see
if it is less than the supplied constant.test
- value to test againstdefault BuildablePredicate<T> isGreaterThanOrEqualTo(int test)
this
to see
if it is greater than or equal to the supplied constant.test
- value to test againstdefault BuildablePredicate<T> isLessThanOrEqualTo(int test)
this
to see
if it is less than or equal to the supplied constant.test
- value to test againstdefault java.util.Comparator<T> asComparator()
Comparator
that orders objects using the integer values
mapped by this function.default BuildableComparableFunction<T,java.lang.Integer> boxed()