BinaryOpNode



A ValueNode that combines two other values with a binary operation.

Summary

Nested types

A binary operation for combining two values in a BinaryOpNode.

Public constructors

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

Creates a BinaryOpNode that combines two other values with a binary operation.

Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

ValueNode

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

Cmn
BinaryOpNode.BinaryOp

The binary operation to perform.

Cmn
ValueNode

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

Cmn

Inherited properties

From androidx.ink.brush.behavior.Node
List<ValueNode>

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

Cmn

Public constructors

BinaryOpNode

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

Creates a BinaryOpNode that combines two other values with a binary operation.

Parameters
operation: BinaryOpNode.BinaryOp

the binary operation to perform

firstInput: ValueNode

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

secondInput: ValueNode

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

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

firstInput

val firstInputValueNode

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

operation

val operationBinaryOpNode.BinaryOp

The binary operation to perform.

secondInput

val secondInputValueNode

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