T
- result type@FunctionalInterface public interface DoubleFunction2<T> extends Function2<T,java.lang.Double,java.lang.Double>
Modifier and Type | Method and Description |
---|---|
default <R> DoubleFunction2<R> |
andThen(java.util.function.Function<? super T,? extends R> after)
Get a chained function which first applies this function
and then the given function to the returned value.
|
default T |
apply(java.lang.Double v1,
java.lang.Double v2)
Default implementation.
|
T |
applyAsDouble(double v1,
double v2)
Apply this function to two double arguments and return the result.
|
default java.util.function.DoubleFunction<T> |
partial1(double argument)
Get a partially applied function where the first argument is fix.
|
default java.util.function.DoubleFunction<T> |
partial2(double argument)
Get a partially applied function where the second argument is fix.
|
after1, after2, after3, after5, after6, after7, after8, after9, apply, applyOrDefault, from, nonFragile, nonFragile, nonFragileX, partial1, partial2, partialLeft, partialRight
after, applyNonNull, applyOrDefault, fallback, fallback, from, from, nonFragile, nonFragile, nonFragileX, partial, withFallback
T applyAsDouble(double v1, double v2)
v1
- first argument valuev2
- second argument valuedefault T apply(java.lang.Double v1, java.lang.Double v2)
applyAsDouble(double, double)
.apply
in interface java.util.function.BiFunction<java.lang.Double,java.lang.Double,T>
v1
- first argumentv2
- second argumentjava.lang.NullPointerException
- if either argument is null
@NotNull default java.util.function.DoubleFunction<T> partial1(double argument)
argument
- value applied for first argument@NotNull default java.util.function.DoubleFunction<T> partial2(double argument)
argument
- value applied for second argument@NotNull default <R> DoubleFunction2<R> andThen(@NotNull java.util.function.Function<? super T,? extends R> after)
andThen
in interface java.util.function.BiFunction<java.lang.Double,java.lang.Double,T>
andThen
in interface java.util.function.Function<ITuple2<? extends java.lang.Double,? extends java.lang.Double>,T>
andThen
in interface Function1<T,ITuple2<? extends java.lang.Double,? extends java.lang.Double>>
andThen
in interface Function2<T,java.lang.Double,java.lang.Double>
R
- result type of returned functionafter
- function to apply after this one