Stay organized with collections
Save and categorize content based on your preferences.
DoubleBinaryOperator
public
interface
DoubleBinaryOperator
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
BinaryOperator
for double
.
This is a functional interface
whose functional method is applyAsDouble(double, double)
.
Summary
Public methods |
abstract
double
|
applyAsDouble(double left, double right)
Applies this operator to the given operands.
|
Public methods
applyAsDouble
public abstract double applyAsDouble (double left,
double right)
Applies this operator to the given operands.
Parameters |
left |
double : the first operand |
right |
double : the second operand |
Returns |
double |
the operator result |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# DoubleBinaryOperator\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nDoubleBinaryOperator\n====================\n\n\n`\npublic\n\n\ninterface\nDoubleBinaryOperator\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| java.util.function.DoubleBinaryOperator |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents an operation upon two `double`-valued operands and producing a\n`double`-valued result. This is the primitive type specialization of\n[BinaryOperator](/reference/java/util/function/BinaryOperator) for `double`.\n\nThis is a [functional interface](/reference/java/util/function/package-summary)\nwhose functional method is [applyAsDouble(double, double)](/reference/java/util/function/DoubleBinaryOperator#applyAsDouble(double,%20double)). \n**See also:**\n\n- [BinaryOperator](/reference/java/util/function/BinaryOperator)\n- [DoubleUnaryOperator](/reference/java/util/function/DoubleUnaryOperator)\n\nSummary\n-------\n\n| ### Public methods ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract double` | ` `[applyAsDouble](/reference/java/util/function/DoubleBinaryOperator#applyAsDouble(double,%20double))`(double left, double right) ` Applies this operator to the given operands. |\n\nPublic methods\n--------------\n\n### applyAsDouble\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract double applyAsDouble (double left, \n double right)\n```\n\nApplies this operator to the given operands.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-------------------------------------|\n| `left` | `double`: the first operand \u003cbr /\u003e |\n| `right` | `double`: the second operand \u003cbr /\u003e |\n\n| Returns ||\n|----------|----------------------------|\n| `double` | the operator result \u003cbr /\u003e |"]]