[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/androidx/appfunctions/metadata/AppFunctionIntTypeMetadata [Back]  [Original]

AppFunctionIntTypeMetadata  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.

AppFunctionIntTypeMetadata


public final class AppFunctionIntTypeMetadata extends AppFunctionDataTypeMetadata

java.lang.Object
    androidx.appfunctions.metadata.AppFunctionDataTypeMetadata
      androidx.appfunctions.metadata.AppFunctionIntTypeMetadata

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-alpha10
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-alpha10
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()

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-07-01 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-01 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page