AppFunctionPrimitiveTypeMetadata


public final class AppFunctionPrimitiveTypeMetadata extends AppFunctionDataTypeMetadata


Defines the schema of a primitive data type.

Summary

Constants

static final int

Boolean type.

static final int

Byte array type.

static final int

Double type.

static final int

Float type.

static final int

Integer type.

static final int

Long type.

static final int

Pending Intent type.

static final int

String type.

static final int

Void type.

Public constructors

AppFunctionPrimitiveTypeMetadata(int type, boolean isNullable)

Public methods

boolean
equals(Object other)
final int
int
@NonNull String

Inherited methods

From androidx.appfunctions.metadata.AppFunctionDataTypeMetadata
final boolean

Whether the data type is nullable.

Constants

TYPE_BOOLEAN

public static final int TYPE_BOOLEAN

Boolean type.

TYPE_BYTES

public static final int TYPE_BYTES

Byte array type.

TYPE_DOUBLE

public static final int TYPE_DOUBLE

Double type.

TYPE_FLOAT

public static final int TYPE_FLOAT

Float type.

TYPE_INT

public static final int TYPE_INT

Integer type.

TYPE_LONG

public static final int TYPE_LONG

Long type.

TYPE_PENDING_INTENT

public static final int TYPE_PENDING_INTENT

Pending Intent type.

TYPE_STRING

public static final int TYPE_STRING

String type.

TYPE_UNIT

public static final int TYPE_UNIT

Void type.

Public constructors

AppFunctionPrimitiveTypeMetadata

Added in 1.0.0-alpha01
public AppFunctionPrimitiveTypeMetadata(int type, boolean isNullable)

Public methods

equals

public boolean equals(Object other)

getType

Added in 1.0.0-alpha01
public final int getType()

hashCode

public int hashCode()

toString

public @NonNull String toString()