DynamicBuilders.DynamicInt32


@RequiresSchemaVersion(major = 1, minor = 200)
public interface DynamicBuilders.DynamicInt32 extends 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

Nested types

Allows formatting DynamicInt32 into a DynamicString.

Builder to create IntFormatter objects.

Public methods

default @NonNull 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.

default @NonNull 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.

default static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    @NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey
)

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

default static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    @NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey,
    @NonNull AnimationParameterBuilders.AnimationSpec animationSpec
)

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

default static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(int start, int end)

Creates a DynamicInt32 which will animate from start to end.

default static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    int start,
    int end,
    @NonNull AnimationParameterBuilders.AnimationSpec animationSpec
)

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

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

Convert the value represented by this DynamicInt32 into a DynamicFloat.

default static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
constant(int constant)

Creates a constant-valued DynamicInt32.

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

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

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

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

default @NonNull DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
div(float other)

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

default @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
div(int other)

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

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

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

default @NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
eq(int other)

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

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

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

default @NonNull DynamicBuilders.DynamicString

Returns a DynamicString that contains the formatted value of this .

default static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
from(
    @NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey
)

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

default static @NonNull DynamicBuilders.DynamicInt32
fromByteArray(@NonNull byte[] byteArray)

Creates a DynamicInt32 from a byte array generated by toDynamicInt32ByteArray.

default static @NonNull DynamicBuilders.DynamicInt32
fromByteArray(@NonNull byte[] byteArray, int offset, int length)

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

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

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

default @NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gt(int other)

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

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

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

default @NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gte(int other)

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

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

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

default @NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lt(int other)

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

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

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

default @NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lte(int other)

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

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

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

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

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

default @NonNull DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
minus(float other)

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)

default @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
minus(int other)

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

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

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

default @NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
ne(int other)

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

default static @NonNull ConditionScopes.ConditionScope<DynamicBuilders.DynamicInt32Integer>
@RequiresSchemaVersion(major = 1, minor = 200)
onCondition(@NonNull DynamicBuilders.DynamicBool condition)

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

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

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)

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

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

default @NonNull DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
plus(float other)

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

default @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
plus(int other)

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

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

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

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

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

default @NonNull DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
rem(float other)

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

default @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
rem(int other)

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

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

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

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

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

default @NonNull DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
times(float other)

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

default @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
times(int other)

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

default @NonNull byte[]

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

default int
toDynamicInt32ByteArray(@NonNull byte[] byteArray)

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).

default int
toDynamicInt32ByteArray(@NonNull byte[] byteArray, int offset, int length)

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 methods

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicInt32 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.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicInt32 animate(@NonNull AnimationParameterBuilders.AnimationSpec 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.

Parameters
@NonNull AnimationParameterBuilders.AnimationSpec animationSpec

The animation parameters.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default static @NonNull DynamicBuilders.DynamicInt32 animate(
    @NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey
)

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
@NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey

The source key to a DynamicDataValue with an int value.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default static @NonNull DynamicBuilders.DynamicInt32 animate(
    @NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey,
    @NonNull AnimationParameterBuilders.AnimationSpec animationSpec
)

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
@NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey

The source key to a DynamicDataValue with an int value

@NonNull AnimationParameterBuilders.AnimationSpec animationSpec

The animation parameters.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default static @NonNull DynamicBuilders.DynamicInt32 animate(int start, int end)

Creates a DynamicInt32 which will animate from start to end.

Parameters
int start

The start value of the range.

int end

The end value of the range.

animate

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default static @NonNull DynamicBuilders.DynamicInt32 animate(
    int start,
    int end,
    @NonNull AnimationParameterBuilders.AnimationSpec animationSpec
)

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

Parameters
int start

The start value of the range.

int end

The end value of the range.

@NonNull AnimationParameterBuilders.AnimationSpec animationSpec

The animation parameters.

asFloat

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

Convert the value represented by this DynamicInt32 into a DynamicFloat.

constant

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default static @NonNull DynamicBuilders.DynamicInt32 constant(int constant)

Creates a constant-valued DynamicInt32.

div

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

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
@NonNull DynamicBuilders.DynamicFloat

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

div

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

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
@NonNull DynamicBuilders.DynamicInt32

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

div

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicFloat div(float other)

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
@NonNull DynamicBuilders.DynamicFloat

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

div

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicInt32 div(int other)

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
@NonNull DynamicBuilders.DynamicInt32

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

eq

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

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)
default @NonNull DynamicBuilders.DynamicBool eq(int other)

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)
default @NonNull DynamicBuilders.DynamicString format()

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)
default @NonNull DynamicBuilders.DynamicString format(@NonNull DynamicBuilders.DynamicInt32.IntFormatter formatter)

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
@NonNull DynamicBuilders.DynamicInt32.IntFormatter formatter

The formatting parameter.

from

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default static @NonNull DynamicBuilders.DynamicInt32 from(
    @NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey
)

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

Parameters
@NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey

The source key to a DynamicDataValue with an int value.

fromByteArray

Added in 1.0.0
default static @NonNull DynamicBuilders.DynamicInt32 fromByteArray(@NonNull byte[] byteArray)

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
default static @NonNull DynamicBuilders.DynamicInt32 fromByteArray(@NonNull byte[] byteArray, int offset, int length)

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)
default @NonNull DynamicBuilders.DynamicBool gt(@NonNull DynamicBuilders.DynamicInt32 other)

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)
default @NonNull DynamicBuilders.DynamicBool gt(int other)

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)
default @NonNull DynamicBuilders.DynamicBool gte(@NonNull DynamicBuilders.DynamicInt32 other)

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)
default @NonNull DynamicBuilders.DynamicBool gte(int other)

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)
default @NonNull DynamicBuilders.DynamicBool lt(@NonNull DynamicBuilders.DynamicInt32 other)

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)
default @NonNull DynamicBuilders.DynamicBool lt(int other)

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)
default @NonNull DynamicBuilders.DynamicBool lte(@NonNull DynamicBuilders.DynamicInt32 other)

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)
default @NonNull DynamicBuilders.DynamicBool lte(int other)

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)
default @NonNull DynamicBuilders.DynamicFloat minus(@NonNull DynamicBuilders.DynamicFloat other)

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
@NonNull DynamicBuilders.DynamicFloat

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

minus

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

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
@NonNull DynamicBuilders.DynamicInt32

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

minus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicFloat minus(float other)

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
@NonNull DynamicBuilders.DynamicFloat

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

minus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicInt32 minus(int other)

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
@NonNull DynamicBuilders.DynamicInt32

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

ne

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

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)
default @NonNull DynamicBuilders.DynamicBool ne(int other)

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)
default static @NonNull ConditionScopes.ConditionScope<DynamicBuilders.DynamicInt32IntegeronCondition(@NonNull DynamicBuilders.DynamicBool condition)

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)
default @NonNull DynamicBuilders.DynamicFloat plus(@NonNull DynamicBuilders.DynamicFloat other)

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
@NonNull DynamicBuilders.DynamicFloat

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

plus

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

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
@NonNull DynamicBuilders.DynamicInt32

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

plus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicFloat plus(float other)

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
@NonNull DynamicBuilders.DynamicFloat

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

plus

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicInt32 plus(int other)

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
@NonNull DynamicBuilders.DynamicInt32

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

rem

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

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
@NonNull DynamicBuilders.DynamicFloat

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

rem

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

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
@NonNull DynamicBuilders.DynamicInt32

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

rem

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicFloat rem(float other)

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
@NonNull DynamicBuilders.DynamicFloat

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

rem

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicInt32 rem(int other)

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
@NonNull DynamicBuilders.DynamicInt32

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

times

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

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
@NonNull DynamicBuilders.DynamicFloat

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

times

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

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
@NonNull DynamicBuilders.DynamicInt32

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

times

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicFloat times(float other)

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
@NonNull DynamicBuilders.DynamicFloat

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

times

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
default @NonNull DynamicBuilders.DynamicInt32 times(int other)

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
@NonNull DynamicBuilders.DynamicInt32

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

toDynamicInt32ByteArray

Added in 1.0.0
default @NonNull byte[] toDynamicInt32ByteArray()

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

toDynamicInt32ByteArray

Added in 1.0.0
default int toDynamicInt32ByteArray(@NonNull byte[] byteArray)

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
default int toDynamicInt32ByteArray(@NonNull byte[] byteArray, int offset, int length)

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