Package it.unimi.dsi.fastutil.doubles
Interface DoubleBinaryOperator
-
- All Superinterfaces:
java.util.function.BiFunction<java.lang.Double,java.lang.Double,java.lang.Double>,java.util.function.BinaryOperator<java.lang.Double>,java.util.function.DoubleBinaryOperator
- 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 DoubleBinaryOperator extends java.util.function.BinaryOperator<java.lang.Double>, java.util.function.DoubleBinaryOperatorA type-specificBinaryOperator; provides methods operating both on objects and on primitives.- Since:
- 8.5.0
- See Also:
BinaryOperator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description doubleapply(double x, double y)Computes the operator on the given inputs.default java.lang.Doubleapply(java.lang.Double x, java.lang.Double y)Deprecated.Please use the corresponding type-specific method instead.default doubleapplyAsDouble(double x, double y)Deprecated.Please useapply(double, double).
-
-
-
Method Detail
-
apply
double apply(double x, double y)Computes the operator on the given inputs.- Parameters:
x- the first input.y- the second input.- Returns:
- the output of the operator on the given inputs.
-
applyAsDouble
@Deprecated default double applyAsDouble(double x, double y)Deprecated.Please useapply(double, double).- Specified by:
applyAsDoublein interfacejava.util.function.DoubleBinaryOperator- Implementation Specification:
- This default implementation delegates to
apply(double, double).
-
apply
@Deprecated default java.lang.Double apply(java.lang.Double x, java.lang.Double y)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
applyin interfacejava.util.function.BiFunction<java.lang.Double,java.lang.Double,java.lang.Double>
-
-