Interface ObjDoubleToDoubleFunction<T>
-
- Type Parameters:
T
- the type of the object parameter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ObjDoubleToDoubleFunction<T>
A function of two arguments - one object and onedouble
- that returns adouble
.This takes two arguments and returns an object result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ObjDoubleToDoubleFunction<T>
andThen(DoubleUnaryOperator other)
Returns a new function that composes this function and the specified function.double
apply(T obj, double value)
Applies the function.
-
-
-
Method Detail
-
apply
double apply(T obj, double value)
Applies the function.- Parameters:
obj
- the first argumentvalue
- the second argument- Returns:
- the result of the function
-
andThen
default ObjDoubleToDoubleFunction<T> andThen(DoubleUnaryOperator other)
Returns a new function that composes this function and the specified function.This returns a composed function that applies the input to this function and then converts the result using the specified function.
- Parameters:
other
- the second function- Returns:
- the combined function, "this AND_THEN that"
- Throws:
NullPointerException
- if the other function is null
-
-