# BinaryOpNode

Artifact: [androidx.ink:ink-brush](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/brush/behavior/BinaryOpNode.kt+class:androidx.ink.brush.behavior.BinaryOpNode) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***

Common/All
- Cmn

  ```
  class BinaryOpNode : ValueNode
  ```

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) |||
|   | ↳ | [androidx.ink.brush.behavior.ValueNode](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode) ||
|   |   | ↳ | [androidx.ink.brush.behavior.BinaryOpNode](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode) |

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` that combines two other values with a binary operation.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode.BinaryOp` A binary operation for combining two values in a `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode`. |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode#BinaryOpNode(androidx.ink.brush.behavior.BinaryOpNode.BinaryOp,androidx.ink.brush.behavior.ValueNode,androidx.ink.brush.behavior.ValueNode)( operation: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode.BinaryOp, firstInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode, secondInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode )` Creates a `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode` that combines two other values with a binary operation. | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode#firstInput()` The input node that produces the first value used in the binary operation. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode.BinaryOp` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode#operation()` The binary operation to perform. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode#secondInput()` The input node that produces the second value used in the binary operation. | Cmn |

### Inherited functions

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node#calculateMinimumRequiredVersion()()`

Returns the minimum required `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` for this `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node`.
Cmn

### Inherited properties

From [androidx.ink.brush.behavior.Node](https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode>` `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/Node#inputs()`

The ordered list of inputs that this node directly depends on.
Cmn

## Public constructors

### BinaryOpNode

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
BinaryOpNode(
    operation: BinaryOpNode.BinaryOp,
    firstInput: ValueNode,
    secondInput: ValueNode
)
```

Creates a `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode` that combines two other values with a binary operation.

| Parameters |
|---|---|
| `operation: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/BinaryOpNode.BinaryOp` | the binary operation to perform |
| `firstInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | input node that produces the first value used in the binary operation |
| `secondInput: https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ValueNode` | input node that produces the second value used in the binary operation |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

```
open fun toString(): String
```

## Public properties

### firstInput

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val firstInput: ValueNode
```

The input node that produces the first value used in the binary operation.

### operation

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val operation: BinaryOpNode.BinaryOp
```

The binary operation to perform.

### secondInput

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
val secondInput: ValueNode
```

The input node that produces the second value used in the binary operation.