IntBinaryOperator
Stay organized with collections
Save and categorize content based on your preferences.
Public Method Summary
abstract
int
|
applyAsInt(int left, int right)
Applies this operator to the given operands.
|
Public Methods
public
abstract
int
applyAsInt
(int left, int right)
Applies this operator to the given operands.
Parameters
left |
the first operand |
right |
the second operand |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-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 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eIntBinaryOperator\u003c/code\u003e is a functional interface representing an operation on two \u003ccode\u003eint\u003c/code\u003e values, producing an \u003ccode\u003eint\u003c/code\u003e result.\u003c/p\u003e\n"],["\u003cp\u003eIt's a specialization of \u003ccode\u003eBinaryOperator\u003c/code\u003e for primitive \u003ccode\u003eint\u003c/code\u003e type.\u003c/p\u003e\n"],["\u003cp\u003eThe core method is \u003ccode\u003eapplyAsInt(int, int)\u003c/code\u003e, which applies the operation to two given \u003ccode\u003eint\u003c/code\u003e operands and returns the \u003ccode\u003eint\u003c/code\u003e result.\u003c/p\u003e\n"]]],[],null,["# IntBinaryOperator\n\npublic interface **IntBinaryOperator** \nRepresents an operation upon two `int`-valued operands and producing an\n`int`-valued result. This is the primitive type specialization of\n[BinaryOperator](../../../../reference/java/util/function/BinaryOperator.html) for `int`.\n\nThis is a [functional interface](/j2objc/javadoc/jre/reference/java/util/function/package-summary)\nwhose functional method is [applyAsInt(int, int)](../../../../reference/java/util/function/IntBinaryOperator.html#applyAsInt(int,%20int)). \n\n##### See Also\n\n- [BinaryOperator](../../../../reference/java/util/function/BinaryOperator.html)\n- [IntUnaryOperator](../../../../reference/java/util/function/IntUnaryOperator.html) \n\n### Public Method Summary\n\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [applyAsInt](../../../../reference/java/util/function/IntBinaryOperator.html#applyAsInt(int,%20int))(int left, int right) Applies this operator to the given operands. |\n\nPublic Methods\n--------------\n\n#### public abstract int\n**applyAsInt**\n(int left, int right)\n\nApplies this operator to the given operands. \n\n##### Parameters\n\n| left | the first operand |\n| right | the second operand |\n|-------|--------------------|\n\n##### Returns\n\n- the operator result"]]