LongBinaryOperator

  • LongBinaryOperator is a functional interface representing an operation on two long values, producing a long result.

  • It is a specialization of BinaryOperator for the primitive type long.

  • The core functionality is provided by the applyAsLong method, which takes two long operands and returns the calculated long result.

public interface 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).

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
Returns
  • the operator result