Interface ThrowableDoubleBinaryOperator

  • All Superinterfaces:
    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 ThrowableDoubleBinaryOperator
    extends java.util.function.DoubleBinaryOperator
    Represents an operation upon two double-valued operands and producing a double-valued result. This is the primitive type specialization of ThrowableBinaryOperator for double.

    Permits checked exceptions unlike DoubleBinaryOperator

    This is a functional interface whose functional method is applyAsDouble(double, double).

    See Also:
    ThrowableBinaryOperator, ThrowableDoubleUnaryOperator
    • Method Detail

      • applyAsDoubleUnsafe

        double applyAsDoubleUnsafe​(double left,
                                   double right)
                            throws java.lang.Throwable
        Applies this operator to the given operands.
        Parameters:
        left - the first operand
        right - the second operand
        Returns:
        the operator result
        Throws:
        java.lang.Throwable - occurred during processing
      • applyAsDouble

        default double applyAsDouble​(double left,
                                     double right)
        Applies this operator to the given operands.
        Specified by:
        applyAsDouble in interface java.util.function.DoubleBinaryOperator
        Parameters:
        left - the first operand
        right - the second operand
        Returns:
        the operator result