AppFunctionIntTypeMetadata


public final class AppFunctionIntTypeMetadata extends AppFunctionDataTypeMetadata


Defines the schema of a int data type.

Corresponds to a kotlin.Int.

Summary

Public constructors

AppFunctionIntTypeMetadata(
    boolean isNullable,
    @NonNull String description,
    Set<@NonNull Integer> enumValues
)

Public methods

boolean
equals(Object other)
final Set<@NonNull Integer>

Defines the complete set of allowed integer values accepted by this data type.

int
@NonNull String

Inherited methods

From androidx.appfunctions.metadata.AppFunctionDataTypeMetadata
final @NonNull String

A description of the data type and its intended use.

final boolean

Whether the data type is nullable.

Public constructors

AppFunctionIntTypeMetadata

Added in 1.0.0-alpha03
public AppFunctionIntTypeMetadata(
    boolean isNullable,
    @NonNull String description,
    Set<@NonNull Integer> enumValues
)

Public methods

equals

public boolean equals(Object other)

getEnumValues

Added in 1.0.0-alpha03
public final Set<@NonNull IntegergetEnumValues()

Defines the complete set of allowed integer values accepted by this data type.

If null, all values are allowed, otherwise it must be non-empty.

If any of the values carry special meaning (e.g., 0 means "off", 1 means "on"), such meanings should be documented clearly in the corresponding property, parameter, or function return KDoc.

hashCode

public int hashCode()

toString

public @NonNull String toString()