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