public interface

DynamicBuilders.DynamicBool

implements DynamicBuilders.DynamicType

 androidx.wear.protolayout.expression.DynamicBuilders.DynamicBool

Overview

Interface defining a dynamic boolean type.

Summary

Methods
public DynamicBuilders.DynamicBooland(DynamicBuilders.DynamicBool input)

Returns a DynamicBuilders.DynamicBool that is true if this DynamicBuilders.DynamicBool and input are both true, otherwise it is false.

public static DynamicBuilders.DynamicBoolconstant(boolean constant)

Creates a constant-valued DynamicBuilders.DynamicBool.

public DynamicBuilders.DynamicBooleq(DynamicBuilders.DynamicBool other)

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

public static DynamicBuilders.DynamicBoolfrom(DynamicDataKey<DynamicBuilders.DynamicBool> dynamicDataKey)

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

public static DynamicBuilders.DynamicBoolfromByteArray(byte[] byteArray[])

Creates a DynamicBuilders.DynamicBool from a byte array generated by DynamicBuilders.DynamicBool.toDynamicBoolByteArray().

public static DynamicBuilders.DynamicBoolfromByteArray(byte[] byteArray[], int offset, int length)

Creates a DynamicBuilders.DynamicBool from the provided byte array at the provided offset and length, that was generated by one of the DynamicBuilders.DynamicBool.toDynamicBoolByteArray() overloads.

public FingerprintgetFingerprint()

Get the fingerprint for this object or null if unknown.

public DynamicBuilders.DynamicBoolne(DynamicBuilders.DynamicBool other)

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

public DynamicBuilders.DynamicBoolnegate()

Returns a DynamicBuilders.DynamicBool that has the opposite value of this DynamicBuilders.DynamicBool.

public DynamicBuilders.DynamicBoolor(DynamicBuilders.DynamicBool input)

Returns a DynamicBuilders.DynamicBool that is true if this DynamicBuilders.DynamicBool or input are true, otherwise it is false.

public byte[]toDynamicBoolByteArray()

Serializes the DynamicBuilders.DynamicBool into a new byte array that can later be used with DynamicBuilders.DynamicBool.fromByteArray(byte[]).

public inttoDynamicBoolByteArray(byte[] byteArray[])

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

public inttoDynamicBoolByteArray(byte[] byteArray[], int offset, int length)

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

public DynamicProto.DynamicBooltoDynamicBoolProto()

Get the protocol buffer representation of this object, without fingerprint.

public DynamicProto.DynamicBooltoDynamicBoolProto(boolean withFingerprint)

Get the protocol buffer representation of this object, with or without fingerprint.

Methods

public DynamicProto.DynamicBool toDynamicBoolProto()

Get the protocol buffer representation of this object, without fingerprint.

public DynamicProto.DynamicBool toDynamicBoolProto(boolean withFingerprint)

Get the protocol buffer representation of this object, with or without fingerprint.

public static DynamicBuilders.DynamicBool fromByteArray(byte[] byteArray[])

Creates a DynamicBuilders.DynamicBool from a byte array generated by DynamicBuilders.DynamicBool.toDynamicBoolByteArray().

public static DynamicBuilders.DynamicBool fromByteArray(byte[] byteArray[], int offset, int length)

Creates a DynamicBuilders.DynamicBool from the provided byte array at the provided offset and length, that was generated by one of the DynamicBuilders.DynamicBool.toDynamicBoolByteArray() overloads.

public byte[] toDynamicBoolByteArray()

Serializes the DynamicBuilders.DynamicBool into a new byte array that can later be used with DynamicBuilders.DynamicBool.fromByteArray(byte[]).

public int toDynamicBoolByteArray(byte[] byteArray[])

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

public int toDynamicBoolByteArray(byte[] byteArray[], int offset, int length)

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

public static DynamicBuilders.DynamicBool constant(boolean constant)

Creates a constant-valued DynamicBuilders.DynamicBool.

public static DynamicBuilders.DynamicBool from(DynamicDataKey<DynamicBuilders.DynamicBool> dynamicDataKey)

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

Parameters:

dynamicDataKey: The key to a DynamicDataBuilders.DynamicDataValue with a boolean value.

Returns a DynamicBuilders.DynamicBool that has the opposite value of this DynamicBuilders.DynamicBool. i.e. {code result = !this}

Returns a DynamicBuilders.DynamicBool that is true if this DynamicBuilders.DynamicBool and input are both true, otherwise it is false. i.e. boolean result = this && input

Parameters:

input: The right hand operand of the "and" operation.

Returns a DynamicBuilders.DynamicBool that is true if this DynamicBuilders.DynamicBool or input are true, otherwise it is false. i.e. boolean result = this || input

Parameters:

input: The right hand operand of the "or" operation.

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

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

public Fingerprint getFingerprint()

Get the fingerprint for this object or null if unknown.