AppFunctionStringTypeMetadata


public final class AppFunctionStringTypeMetadata extends AppFunctionDataTypeMetadata


Defines the schema of a string data type.

Corresponds to kotlin.String.

Summary

Public constructors

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

Public methods

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

Defines the complete set of allowed string 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

AppFunctionStringTypeMetadata

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

Public methods

equals

public boolean equals(Object other)

getEnumValues

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

Defines the complete set of allowed string 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., "AUTO" means automatic mode), such meanings should be documented clearly in the corresponding property, parameter, or function return KDoc.

hashCode

public int hashCode()

toString

public @NonNull String toString()