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.DoubleBinaryOperator
    A type-specific BinaryOperator; provides methods operating both on objects and on primitives.
    Since:
    8.5.0
    See Also:
    BinaryOperator
    • 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.
        Specified by:
        applyAsDouble in interface java.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:
        apply in interface java.util.function.BiFunction<java.lang.Double,​java.lang.Double,​java.lang.Double>