LongBinaryOperator
Stay organized with collections
Save and categorize content based on your preferences.
Public Method Summary
abstract
long
|
applyAsLong(long left, long right)
Applies this operator to the given operands.
|
Public Methods
public
abstract
long
applyAsLong
(long left, long 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\u003eLongBinaryOperator\u003c/code\u003e is a functional interface representing an operation on two \u003ccode\u003elong\u003c/code\u003e values, producing a \u003ccode\u003elong\u003c/code\u003e result.\u003c/p\u003e\n"],["\u003cp\u003eIt is a specialization of \u003ccode\u003eBinaryOperator\u003c/code\u003e for the primitive type \u003ccode\u003elong\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe core functionality is provided by the \u003ccode\u003eapplyAsLong\u003c/code\u003e method, which takes two \u003ccode\u003elong\u003c/code\u003e operands and returns the calculated \u003ccode\u003elong\u003c/code\u003e result.\u003c/p\u003e\n"]]],["`LongBinaryOperator` is a functional interface for operations on two `long` values, yielding a `long` result. Its core method, `applyAsLong`, takes two `long` operands (`left` and `right`) and returns a `long` result, representing the outcome of the operation. This interface is a specialization of `BinaryOperator` for `long` types. `LongUnaryOperator` is provided as a related interface.\n"],null,["# LongBinaryOperator\n\npublic interface **LongBinaryOperator** \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.html) for `long`.\n\nThis is a [functional interface](/j2objc/javadoc/jre/reference/java/util/function/package-summary)\nwhose functional method is [applyAsLong(long, long)](../../../../reference/java/util/function/LongBinaryOperator.html#applyAsLong(long,%20long)). \n\n##### See Also\n\n- [BinaryOperator](../../../../reference/java/util/function/BinaryOperator.html)\n- [LongUnaryOperator](../../../../reference/java/util/function/LongUnaryOperator.html) \n\n### Public Method Summary\n\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract long | [applyAsLong](../../../../reference/java/util/function/LongBinaryOperator.html#applyAsLong(long,%20long))(long left, long right) Applies this operator to the given operands. |\n\nPublic Methods\n--------------\n\n#### public abstract long\n**applyAsLong**\n(long left, long 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"]]