DynamicBuilders.DynamicInt32


@RequiresSchemaVersion(major = 1, minor = 200)
interface DynamicBuilders.DynamicInt32 : DynamicBuilders.DynamicType

Known direct subclasses
PlatformHealthSources.DynamicHeartRateAccuracy

Dynamic heart rate sensor accuracy value.


Interface defining a dynamic int32 type.

It offers a set of helper methods for creating arithmetic and logical expressions, e.g. plus, times, eq, etc. These helper methods produce expression trees based on the order in which they were called in an expression. Thus, no operator precedence rules are applied.

For example the following expression is equivalent to result = ((a + b)*c)/d :

a.plus(b).times(c).div(d);
More complex expressions can be created by nesting expressions. For example the following expression is equivalent to result = (a + b)*(c - d) :
(a.plus(b)).times(c.minus(d));

Summary

Public functions

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate()

Returns a DynamicInt32 that is bound to the value of this DynamicInt32 and every time its value is changing, it animates from its current value to the new value.

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(animationSpec: AnimationParameterBuilders.AnimationSpec)

Returns a DynamicInt32 that is bound to the value of this DynamicInt32 and every time its value is changing, it animates from its current value to the new value.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>)

Creates a DynamicInt32 that is bound to the value of an item of the State.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>,
    animationSpec: AnimationParameterBuilders.AnimationSpec
)

Creates a DynamicInt32 that is bound to the value of an item of the State.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(start: Int, end: Int)

Creates a DynamicInt32 which will animate from start to end.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    start: Int,
    end: Int,
    animationSpec: AnimationParameterBuilders.AnimationSpec
)

Creates a DynamicInt32 which will animate from start to end with the given animation parameters.

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
asFloat()

Convert the value represented by this DynamicInt32 into a DynamicFloat.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
constant(constant: Int)

Creates a constant-valued DynamicInt32.

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
div(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the result of dividing this by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(1.4f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
div(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the result of dividing this by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(1)

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
div(other: Float)

Creates a DynamicFloat containing the result of dividing this by a float; As an example, the following is equal to DynamicFloat.constant(1.4f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
div(other: Int)

Creates a DynamicInt32 containing the result of dividing this by an integer; As an example, the following is equal to DynamicInt32.constant(1)

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
eq(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are equal, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
eq(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are equal, otherwise it's false.

DynamicBuilders.DynamicString
@RequiresSchemaVersion(major = 1, minor = 200)
format()

Returns a DynamicString that contains the formatted value of this (with default formatting parameters).

DynamicBuilders.DynamicString

Returns a DynamicString that contains the formatted value of this .

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
from(dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>)

Creates a DynamicInt32 that is bound to the value of an item of the State.

java-static DynamicBuilders.DynamicInt32

Creates a DynamicInt32 from a byte array generated by toDynamicInt32ByteArray.

java-static DynamicBuilders.DynamicInt32
fromByteArray(byteArray: ByteArray, offset: Int, length: Int)

Creates a DynamicInt32 from the provided byte array at the provided offset and length, that was generated by one of the toDynamicInt32ByteArray overloads.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gt(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gt(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gte(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than or equal to other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gte(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than or equal to other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lt(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lt(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lte(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than or equal to other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lte(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than or equal to other, otherwise it's false.

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
minus(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the result of subtracting a from this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(1.5f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
minus(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the result of subtracting another from this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
minus(other: Float)

Creates a DynamicFloat containing the result of subtracting a float from this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(1.5f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
minus(other: Int)

Creates a DynamicInt32 containing the result of subtracting an integer from this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
ne(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are not equal, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
ne(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are not equal, otherwise it's false.

java-static ConditionScopes.ConditionScope<DynamicBuilders.DynamicInt32!, Int!>
@RequiresSchemaVersion(major = 1, minor = 200)
onCondition(condition: DynamicBuilders.DynamicBool)

Bind the value of this DynamicInt32 to the result of a conditional expression.

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
plus(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the result of adding a DynamicFloat to this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(13.5f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
plus(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the result of adding another to this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(13)

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
plus(other: Float)

Creates a DynamicFloat containing the result of adding a float to this ; As an example, the following is equal to DynamicFloat.constant(13.5f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
plus(other: Int)

Creates a DynamicInt32 containing the result of adding an integer to this ; As an example, the following is equal to DynamicInt32.constant(13)

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
rem(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the reminder of dividing this by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(1.5f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
rem(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the reminder of dividing this by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
rem(other: Float)

Creates a DynamicInt32 containing the reminder of dividing this by a float; As an example, the following is equal to DynamicFloat.constant(1.5f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
rem(other: Int)

Creates a DynamicInt32 containing the reminder of dividing this by an integer; As an example, the following is equal to DynamicInt32.constant(2)

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
times(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the result of multiplying this by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(38.5f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
times(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the result of multiplying this by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(35)

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
times(other: Float)

Creates a DynamicFloat containing the result of multiplying this by a float; As an example, the following is equal to DynamicFloat.constant(38.5f)

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
times(other: Int)

Creates a DynamicInt32 containing the result of multiplying this by an integer; As an example, the following is equal to DynamicInt32.constant(35)

ByteArray<Byte>

Serializes the DynamicInt32 into a new byte array that can later be used with fromByteArray.

Int

Serializes the DynamicInt32 into the provided byte array, returning the amount of bytes written, that can later be used with DynamicInt32.fromByteArray(byteArray, 0, bytesWritten).

Int
toDynamicInt32ByteArray(byteArray: ByteArray, offset: Int, length: Int)

Serializes the DynamicInt32 into the provided byte array, returning the amount of bytes written, limited by the provided offset and length, that can later be used with DynamicInt32.fromByteArray(byteArray, offset, bytesWritten).

Public functions

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun animate(): DynamicBuilders.DynamicInt32

Returns a DynamicInt32 that is bound to the value of this DynamicInt32 and every time its value is changing, it animates from its current value to the new value.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun animate(animationSpec: AnimationParameterBuilders.AnimationSpec): DynamicBuilders.DynamicInt32

Returns a DynamicInt32 that is bound to the value of this DynamicInt32 and every time its value is changing, it animates from its current value to the new value.

Parameters
animationSpec: AnimationParameterBuilders.AnimationSpec

The animation parameters.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun animate(dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 that is bound to the value of an item of the State. Every time the state value changes, this DynamicInt32 will animate from its current value to the new value (from the state).

Parameters
dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>

The source key to a DynamicDataValue with an int value.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun animate(
    dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>,
    animationSpec: AnimationParameterBuilders.AnimationSpec
): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 that is bound to the value of an item of the State. Every time the state value changes, this DynamicInt32 will animate from its current value to the new value (from the state).

Parameters
dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>

The source key to a DynamicDataValue with an int value

animationSpec: AnimationParameterBuilders.AnimationSpec

The animation parameters.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun animate(start: Int, end: Int): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 which will animate from start to end.

Parameters
start: Int

The start value of the range.

end: Int

The end value of the range.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun animate(
    start: Int,
    end: Int,
    animationSpec: AnimationParameterBuilders.AnimationSpec
): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 which will animate from start to end with the given animation parameters.

Parameters
start: Int

The start value of the range.

end: Int

The end value of the range.

animationSpec: AnimationParameterBuilders.AnimationSpec

The animation parameters.

asFloat

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun asFloat(): DynamicBuilders.DynamicFloat

Convert the value represented by this DynamicInt32 into a DynamicFloat.

constant

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun constant(constant: Int): DynamicBuilders.DynamicInt32

Creates a constant-valued DynamicInt32.

div

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun div(other: DynamicBuilders.DynamicFloat): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the result of dividing this by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(1.4f)

  DynamicInt32.constant(7).div(DynamicFloat.constant(5f));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

div

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun div(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the result of dividing this by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(1)

  DynamicInt32.constant(7).div(DynamicInt32.constant(5));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

div

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun div(other: Float): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the result of dividing this by a float; As an example, the following is equal to DynamicFloat.constant(1.4f)

  DynamicInt32.constant(7).div(5f);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

div

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun div(other: Int): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the result of dividing this by an integer; As an example, the following is equal to DynamicInt32.constant(1)

  DynamicInt32.constant(7).div(5);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

eq

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun eq(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are equal, otherwise it's false.

eq

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun eq(other: Int): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are equal, otherwise it's false.

format

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun format(): DynamicBuilders.DynamicString

Returns a DynamicString that contains the formatted value of this (with default formatting parameters). As an example, for locale en_US, the following is equal to DynamicString.constant("12")

  DynamicInt32.constant(12).format()
The resulted DynamicString is subject to being truncated if it's too long.

format

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun format(formatter: DynamicBuilders.DynamicInt32.IntFormatter): DynamicBuilders.DynamicString

Returns a DynamicString that contains the formatted value of this . As an example, for locale en_US, the following is equal to DynamicString.constant("0,012")

  DynamicInt32.constant(12)
           .format(
               new IntFormatter.Builder()
                               .setMinIntegerDigits(4)
                               .setGroupingUsed(true)
                               .build());
Parameters
formatter: DynamicBuilders.DynamicInt32.IntFormatter

The formatting parameter.

from

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun from(dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 that is bound to the value of an item of the State.

Parameters
dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>

The source key to a DynamicDataValue with an int value.

fromByteArray

Added in 1.0.0
java-static fun fromByteArray(byteArray: ByteArray): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 from a byte array generated by toDynamicInt32ByteArray.

Throws
java.lang.IllegalArgumentException

if the byte array does not contain a valid serialization

fromByteArray

Added in 1.0.0
java-static fun fromByteArray(byteArray: ByteArray, offset: Int, length: Int): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 from the provided byte array at the provided offset and length, that was generated by one of the toDynamicInt32ByteArray overloads.

Throws
java.lang.IllegalArgumentException

if the byte array does not contain a valid serialization in the provided offset and length

gt

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun gt(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than other, otherwise it's false.

gt

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun gt(other: Int): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than other, otherwise it's false.

gte

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun gte(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than or equal to other, otherwise it's false.

gte

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun gte(other: Int): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than or equal to other, otherwise it's false.

lt

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun lt(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than other, otherwise it's false.

lt

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun lt(other: Int): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than other, otherwise it's false.

lte

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun lte(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than or equal to other, otherwise it's false.

lte

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun lte(other: Int): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than or equal to other, otherwise it's false.

minus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun minus(other: DynamicBuilders.DynamicFloat): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the result of subtracting a from this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(1.5f)

  DynamicInt32.constant(7).minus(DynamicFloat.constant(5.5f));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

minus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun minus(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the result of subtracting another from this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

  DynamicInt32.constant(7).minus(DynamicInt32.constant(5));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

minus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun minus(other: Float): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the result of subtracting a float from this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(1.5f)

  DynamicInt32.constant(7).minus(5.5f);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

minus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun minus(other: Int): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the result of subtracting an integer from this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

  DynamicInt32.constant(7).minus(5);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

ne

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun ne(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are not equal, otherwise it's false.

ne

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun ne(other: Int): DynamicBuilders.DynamicBool

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are not equal, otherwise it's false.

onCondition

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun onCondition(condition: DynamicBuilders.DynamicBool): ConditionScopes.ConditionScope<DynamicBuilders.DynamicInt32!, Int!>

Bind the value of this DynamicInt32 to the result of a conditional expression. This will use the value given in either use or elseUse depending on the value yielded from condition.

plus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun plus(other: DynamicBuilders.DynamicFloat): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the result of adding a DynamicFloat to this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(13.5f)

  DynamicInt32.constant(7).plus(DynamicFloat.constant(6.5f));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

plus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun plus(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the result of adding another to this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(13)

  DynamicInt32.constant(7).plus(DynamicInt32.constant(6));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

plus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun plus(other: Float): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the result of adding a float to this ; As an example, the following is equal to DynamicFloat.constant(13.5f)

  DynamicInt32.constant(7).plus(6.5f);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

plus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun plus(other: Int): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the result of adding an integer to this ; As an example, the following is equal to DynamicInt32.constant(13)

  DynamicInt32.constant(7).plus(6);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

rem

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun rem(other: DynamicBuilders.DynamicFloat): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the reminder of dividing this by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(1.5f)

  DynamicInt32.constant(7).rem(DynamicInt32.constant(5.5f));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

rem

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun rem(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the reminder of dividing this by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

  DynamicInt32.constant(7).rem(DynamicInt32.constant(5));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

rem

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun rem(other: Float): DynamicBuilders.DynamicFloat

Creates a DynamicInt32 containing the reminder of dividing this by a float; As an example, the following is equal to DynamicFloat.constant(1.5f)

  DynamicInt32.constant(7).rem(5.5f);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

rem

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun rem(other: Int): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the reminder of dividing this by an integer; As an example, the following is equal to DynamicInt32.constant(2)

  DynamicInt32.constant(7).rem(5);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

times

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun times(other: DynamicBuilders.DynamicFloat): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the result of multiplying this by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(38.5f)

  DynamicInt32.constant(7).times(DynamicFloat.constant(5.5f));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

times

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun times(other: DynamicBuilders.DynamicInt32): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the result of multiplying this by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(35)

  DynamicInt32.constant(7).times(DynamicInt32.constant(5));
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

times

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun times(other: Float): DynamicBuilders.DynamicFloat

Creates a DynamicFloat containing the result of multiplying this by a float; As an example, the following is equal to DynamicFloat.constant(38.5f)

  DynamicInt32.constant(7).times(5.5f);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicFloat for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicFloat

a new instance of DynamicFloat containing the result of the operation.

times

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
fun times(other: Int): DynamicBuilders.DynamicInt32

Creates a DynamicInt32 containing the result of multiplying this by an integer; As an example, the following is equal to DynamicInt32.constant(35)

  DynamicInt32.constant(7).times(5);
The operation's evaluation order depends only on its position in the expression; no operator precedence rules are applied. See DynamicInt32 for more information on operation evaluation order.
Returns
DynamicBuilders.DynamicInt32

a new instance of DynamicInt32 containing the result of the operation.

toDynamicInt32ByteArray

Added in 1.0.0
fun toDynamicInt32ByteArray(): ByteArray<Byte>

Serializes the DynamicInt32 into a new byte array that can later be used with fromByteArray.

toDynamicInt32ByteArray

Added in 1.0.0
fun toDynamicInt32ByteArray(byteArray: ByteArray): Int

Serializes the DynamicInt32 into the provided byte array, returning the amount of bytes written, that can later be used with DynamicInt32.fromByteArray(byteArray, 0, bytesWritten).

Throws
java.lang.IllegalArgumentException

if the byte array is too small

toDynamicInt32ByteArray

Added in 1.0.0
fun toDynamicInt32ByteArray(byteArray: ByteArray, offset: Int, length: Int): Int

Serializes the DynamicInt32 into the provided byte array, returning the amount of bytes written, limited by the provided offset and length, that can later be used with DynamicInt32.fromByteArray(byteArray, offset, bytesWritten).

Throws
java.lang.IllegalArgumentException

if the byte array is too small