Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# LongBinaryOperator

` public interface LongBinaryOperator `   
` `

|---|
| java.util.function.LongBinaryOperator |

<br />

*** ** * ** ***

Represents an operation upon two `long`-valued operands and producing a `long`-valued result. This is the primitive type specialization of `https://developer.android.com/reference/java/util/function/BinaryOperator` for `long`.

This is a [functional interface](https://developer.android.com/reference/java/util/function/package-summary) whose functional method is `https://developer.android.com/reference/java/util/function/LongBinaryOperator#applyAsLong(long,%20long)`.
**See also:**

- `https://developer.android.com/reference/java/util/function/BinaryOperator`
- `https://developer.android.com/reference/java/util/function/LongUnaryOperator`

## Summary

| ### Public methods ||
|---|---|
| ` abstract long` | ` https://developer.android.com/reference/java/util/function/LongBinaryOperator#applyAsLong(long,%20long)(long left, long right) ` Applies this operator to the given operands. |

## Public methods

### applyAsLong

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract long applyAsLong (long left, 
                long right)
```

Applies this operator to the given operands.

<br />

| Parameters ||
|---|---|
| `left` | `long`: the first operand <br /> |
| `right` | `long`: the second operand <br /> |

| Returns ||
|---|---|
| `long` | the operator result <br /> |