Stay organized with collections
Save and categorize content based on your preferences.
LongBinaryOperator
public
interface
LongBinaryOperator
java.util.function.LongBinaryOperator
|
Represents an operation upon two long
-valued operands and producing a
long
-valued result. This is the primitive type specialization of
BinaryOperator
for long
.
This is a functional interface
whose functional method is applyAsLong(long, long)
.
Summary
Public methods |
abstract
long
|
applyAsLong(long left, long right)
Applies this operator to the given operands.
|
Public methods
applyAsLong
public abstract long applyAsLong (long left,
long right)
Applies this operator to the given operands.
Parameters |
left |
long : the first operand |
right |
long : the second operand |
Returns |
long |
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,["# LongBinaryOperator\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nLongBinaryOperator\n==================\n\n\n`\npublic\n\n\ninterface\nLongBinaryOperator\n`\n\n\n`\n\n\n`\n\n|---------------------------------------|\n| java.util.function.LongBinaryOperator |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nRepresents an operation upon two `long`-valued operands and producing a\n`long`-valued result. This is the primitive type specialization of\n[BinaryOperator](/reference/java/util/function/BinaryOperator) for `long`.\n\nThis is a [functional interface](/reference/java/util/function/package-summary)\nwhose functional method is [applyAsLong(long, long)](/reference/java/util/function/LongBinaryOperator#applyAsLong(long,%20long)). \n**See also:**\n\n- [BinaryOperator](/reference/java/util/function/BinaryOperator)\n- [LongUnaryOperator](/reference/java/util/function/LongUnaryOperator)\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract long` | ` `[applyAsLong](/reference/java/util/function/LongBinaryOperator#applyAsLong(long,%20long))`(long left, long right) ` Applies this operator to the given operands. |\n\nPublic methods\n--------------\n\n### applyAsLong\n\nAdded in [API level 24](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract long applyAsLong (long left, \n long right)\n```\n\nApplies this operator to the given operands.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------------------------|\n| `left` | `long`: the first operand \u003cbr /\u003e |\n| `right` | `long`: the second operand \u003cbr /\u003e |\n\n| Returns ||\n|--------|----------------------------|\n| `long` | the operator result \u003cbr /\u003e |"]]