public interface

DynamicDataBuilders.DynamicDataValue<T extends DynamicBuilders.DynamicType>

 androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue<T>

Overview

Interface defining a dynamic data value.

Summary

Methods
public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicBool>fromBool(boolean constant)

Creates a boolean DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicType>fromByteArray(byte[] byteArray[])

Creates a DynamicDataBuilders.DynamicDataValue from a byte array generated by DynamicDataBuilders.DynamicDataValue.toDynamicDataValueByteArray().

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicType>fromByteArray(byte[] byteArray[], int offset, int length)

Creates a DynamicDataBuilders.DynamicDataValue from the provided byte array at the provided offset and length, that was generated by one of the DynamicDataBuilders.DynamicDataValue.toDynamicDataValueByteArray() overloads.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicColor>fromColor(int constant)

Creates a color DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicDuration>fromDuration(java.time.Duration constant)

Creates a java.time.Duration DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicFloat>fromFloat(float constant)

Creates a float DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicInstant>fromInstant(java.time.Instant constant)

Creates an java.time.Instant DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicInt32>fromInt(int constant)

Creates a int DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicString>fromString(java.lang.String constant)

Creates a string DynamicDataBuilders.DynamicDataValue.

public booleangetBoolValue()

Returns the boolean value stored in this DynamicDataBuilders.DynamicDataValue.

public intgetColorValue()

Returns the color value stored in this DynamicDataBuilders.DynamicDataValue.

public java.time.DurationgetDurationValue()

Returns the java.time.Duration value stored in this DynamicDataBuilders.DynamicDataValue.

public FingerprintgetFingerprint()

Get the fingerprint for this object or null if unknown.

public floatgetFloatValue()

Returns the float value stored in this DynamicDataBuilders.DynamicDataValue.

public java.time.InstantgetInstantValue()

Returns the java.time.Instant value stored in this DynamicDataBuilders.DynamicDataValue.

public intgetIntValue()

Returns the int value stored in this DynamicDataBuilders.DynamicDataValue.

public java.lang.StringgetStringValue()

Returns the String value stored in this DynamicDataBuilders.DynamicDataValue.

public booleanhasBoolValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains a boolean value.

public booleanhasColorValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains a color value.

public booleanhasDurationValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains an java.time.Duration value.

public booleanhasFloatValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains a float value.

public booleanhasInstantValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains an java.time.Instant value.

public booleanhasIntValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains an int value.

public booleanhasStringValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains a String value.

public byte[]toDynamicDataValueByteArray()

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

public inttoDynamicDataValueByteArray(byte[] byteArray[])

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

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

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

public DynamicDataProto.DynamicDataValuetoDynamicDataValueProto()

Get the protocol buffer representation of this object.

Methods

public DynamicDataProto.DynamicDataValue toDynamicDataValueProto()

Get the protocol buffer representation of this object.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicType> fromByteArray(byte[] byteArray[])

Creates a DynamicDataBuilders.DynamicDataValue from a byte array generated by DynamicDataBuilders.DynamicDataValue.toDynamicDataValueByteArray().

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicType> fromByteArray(byte[] byteArray[], int offset, int length)

Creates a DynamicDataBuilders.DynamicDataValue from the provided byte array at the provided offset and length, that was generated by one of the DynamicDataBuilders.DynamicDataValue.toDynamicDataValueByteArray() overloads.

public byte[] toDynamicDataValueByteArray()

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

public int toDynamicDataValueByteArray(byte[] byteArray[])

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

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

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

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicBool> fromBool(boolean constant)

Creates a boolean DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicInt32> fromInt(int constant)

Creates a int DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicFloat> fromFloat(float constant)

Creates a float DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicColor> fromColor(int constant)

Creates a color DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicString> fromString(java.lang.String constant)

Creates a string DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicInstant> fromInstant(java.time.Instant constant)

Creates an java.time.Instant DynamicDataBuilders.DynamicDataValue.

public static DynamicDataBuilders.DynamicDataValue<DynamicBuilders.DynamicDuration> fromDuration(java.time.Duration constant)

Creates a java.time.Duration DynamicDataBuilders.DynamicDataValue.

public boolean hasIntValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains an int value. Otherwise returns false.

public int getIntValue()

Returns the int value stored in this DynamicDataBuilders.DynamicDataValue.

public boolean hasColorValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains a color value. Otherwise returns false.

public int getColorValue()

Returns the color value stored in this DynamicDataBuilders.DynamicDataValue.

public boolean hasBoolValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains a boolean value. Otherwise returns false.

public boolean getBoolValue()

Returns the boolean value stored in this DynamicDataBuilders.DynamicDataValue.

public boolean hasFloatValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains a float value. Otherwise returns false.

public float getFloatValue()

Returns the float value stored in this DynamicDataBuilders.DynamicDataValue.

public boolean hasStringValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains a String value. Otherwise returns false.

public java.lang.String getStringValue()

Returns the String value stored in this DynamicDataBuilders.DynamicDataValue.

public boolean hasInstantValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains an java.time.Instant value. Otherwise returns false.

public java.time.Instant getInstantValue()

Returns the java.time.Instant value stored in this DynamicDataBuilders.DynamicDataValue.

public boolean hasDurationValue()

Returns true if the DynamicDataBuilders.DynamicDataValue contains an java.time.Duration value. Otherwise returns false.

public java.time.Duration getDurationValue()

Returns the java.time.Duration value stored in this DynamicDataBuilders.DynamicDataValue.

public Fingerprint getFingerprint()

Get the fingerprint for this object or null if unknown.