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