BinaryOpNode.BinaryOp
-
Cmn
class BinaryOpNode.BinaryOp
A binary operation for combining two values in a BinaryOpNode. Unless otherwise specified for a particular operator, the result will be null (i.e. undefined) if either input value is null.
Summary
Public companion properties |
||
|---|---|---|
BinaryOpNode.BinaryOp |
Evaluates to null if the first input is null, otherwise evaluates to the second input. |
Cmn
|
BinaryOpNode.BinaryOp |
Evaluates to the max of the two input values. |
Cmn
|
BinaryOpNode.BinaryOp |
Evaluates to the min of the two input values. |
Cmn
|
BinaryOpNode.BinaryOp |
Evaluates to first input if it's not null, otherwise evaluates to the second input. |
Cmn
|
BinaryOpNode.BinaryOp |
Evaluates to the product of the two input values. |
Cmn
|
BinaryOpNode.BinaryOp |
Evaluates to the sum of the two input values. |
Cmn
|
BinaryOpNode.BinaryOp |
If exactly one input isn't null, evaluates to that one, otherwise evaluates to null. |
Cmn
|
Public companion properties
AND_THEN
val AND_THEN: BinaryOpNode.BinaryOp
Evaluates to null if the first input is null, otherwise evaluates to the second input.
OR_ELSE
val OR_ELSE: BinaryOpNode.BinaryOp
Evaluates to first input if it's not null, otherwise evaluates to the second input.
XOR_ELSE
val XOR_ELSE: BinaryOpNode.BinaryOp
If exactly one input isn't null, evaluates to that one, otherwise evaluates to null.
Public functions
calculateMinimumRequiredVersion
fun calculateMinimumRequiredVersion(): Version
Returns the minimum required Version for this BinaryOp.
By default, decoding a androidx.ink.brush.BrushFamily containing a BinaryOp with a minimum required version higher than Version.MAX_SUPPORTED will fail.