Stay organized with collections
Save and categorize content based on your preferences.
DoubleBinaryOperator
@FunctionalInterface interface 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 |
Applies this operator to the given operands.
|
Public methods
applyAsDouble
abstract fun applyAsDouble(
left: Double,
right: Double
): Double
Applies this operator to the given operands.
Parameters |
left |
Double: the first operand |
right |
Double: the second operand |
Return |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DoubleBinaryOperator\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDoubleBinaryOperator\n====================\n\n```\n@FunctionalInterface interface DoubleBinaryOperator\n```\n\n|----------------------------------------------|\n| [java.util.function.DoubleBinaryOperator](#) |\n\nRepresents an operation upon two `double`-valued operands and producing a `double`-valued result. This is the primitive type specialization of [BinaryOperator](/reference/kotlin/java/util/function/BinaryOperator) for `double`.\n\nThis is a [functional interface](/reference/kotlin/java/util/function/package-summary) whose functional method is [applyAsDouble(double,double)](#applyAsDouble(kotlin.Double,%20kotlin.Double)).\n\nSummary\n-------\n\n| Public methods ||\n|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | [applyAsDouble](#applyAsDouble(kotlin.Double,%20kotlin.Double))`(`left:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`, `right:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` Applies this operator to the given operands. |\n\nPublic methods\n--------------\n\n### applyAsDouble\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun applyAsDouble(\n left: Double, \n right: Double\n): Double\n```\n\nApplies this operator to the given operands.\n\n| Parameters ||\n|---------|------------------------------------------------------------------------------------------------------|\n| `left` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html): the first operand |\n| `right` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html): the second operand |\n\n| Return ||\n|----------------------------------------------------------------------------------|---------------------|\n| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html) | the operator result |"]]