Interface ThrowableDoubleBinaryOperator

All Superinterfaces:
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 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:
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    applyAsDouble(double left, double right)
    Applies this operator to the given operands.
    double
    applyAsDoubleUnsafe(double left, double right)
    Applies this operator to the given operands.
  • Method Details

    • applyAsDoubleUnsafe

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

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