AppFunctionIntTypeMetadata


class AppFunctionIntTypeMetadata : AppFunctionDataTypeMetadata


Defines the schema of a int data type.

Corresponds to a kotlin.Int.

Summary

Public constructors

AppFunctionIntTypeMetadata(
    isNullable: Boolean,
    description: String,
    enumValues: Set<Int>?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Set<Int>?

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

Inherited properties

From androidx.appfunctions.metadata.AppFunctionDataTypeMetadata
String

A description of the data type and its intended use.

Boolean

Whether the data type is nullable.

Public constructors

AppFunctionIntTypeMetadata

Added in 1.0.0-alpha03
AppFunctionIntTypeMetadata(
    isNullable: Boolean,
    description: String = "",
    enumValues: Set<Int>? = null
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

enumValues

Added in 1.0.0-alpha03
val enumValuesSet<Int>?

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.