Stay organized with collections
Save and categorize content based on your preferences.
IntBinaryOperator
@FunctionalInterface interface IntBinaryOperator
Represents an operation upon two int
-valued operands and producing an int
-valued result. This is the primitive type specialization of BinaryOperator
for int
.
This is a functional interface whose functional method is applyAsInt(int,int)
.
Summary
Public methods |
abstract Int |
Applies this operator to the given operands.
|
Public methods
applyAsInt
abstract fun applyAsInt(
left: Int,
right: Int
): Int
Applies this operator to the given operands.
Parameters |
left |
Int: the first operand |
right |
Int: the second operand |
Return |
Int |
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,["# IntBinaryOperator\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nIntBinaryOperator\n=================\n\n```\n@FunctionalInterface interface IntBinaryOperator\n```\n\n|-------------------------------------------|\n| [java.util.function.IntBinaryOperator](#) |\n\nRepresents an operation upon two `int`-valued operands and producing an `int`-valued result. This is the primitive type specialization of [BinaryOperator](/reference/kotlin/java/util/function/BinaryOperator) for `int`.\n\nThis is a [functional interface](/reference/kotlin/java/util/function/package-summary) whose functional method is [applyAsInt(int,int)](#applyAsInt(kotlin.Int,%20kotlin.Int)).\n\nSummary\n-------\n\n| Public methods ||\n|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [applyAsInt](#applyAsInt(kotlin.Int,%20kotlin.Int))`(`left:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `right:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Applies this operator to the given operands. |\n\nPublic methods\n--------------\n\n### applyAsInt\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun applyAsInt(\n left: Int, \n right: Int\n): Int\n```\n\nApplies this operator to the given operands.\n\n| Parameters ||\n|---------|------------------------------------------------------------------------------------------------|\n| `left` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the first operand |\n| `right` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): the second operand |\n\n| Return ||\n|----------------------------------------------------------------------------|---------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the operator result |"]]