A2uiJsonToken


public enum A2uiJsonToken extends Enum


Identifies the type of the next JSON token.

Summary

Enum Values

BEGIN_ARRAY

Indicates the start of a JSON array.

BEGIN_OBJECT

Indicates the start of a JSON object.

BOOLEAN

Indicates a JSON boolean value.

END_ARRAY

Indicates the end of a JSON array.

END_DOCUMENT

Indicates the end of the JSON document.

END_OBJECT

Indicates the end of a JSON object.

NAME

Indicates a JSON property name.

NULL

Indicates a JSON null literal.

NUMBER

Indicates a JSON numeric value.

STRING

Indicates a JSON string value.

Public methods

final @NonNull EnumEntries<@NonNull A2uiJsonToken>

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

static final @NonNull A2uiJsonToken

Returns the enum constant of this type with the specified name.

static final @NonNull A2uiJsonToken[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

BEGIN_ARRAY

A2uiJsonToken A2uiJsonToken.BEGIN_ARRAY

Indicates the start of a JSON array.

BEGIN_OBJECT

A2uiJsonToken A2uiJsonToken.BEGIN_OBJECT

Indicates the start of a JSON object.

BOOLEAN

A2uiJsonToken A2uiJsonToken.BOOLEAN

Indicates a JSON boolean value.

END_ARRAY

A2uiJsonToken A2uiJsonToken.END_ARRAY

Indicates the end of a JSON array.

END_DOCUMENT

A2uiJsonToken A2uiJsonToken.END_DOCUMENT

Indicates the end of the JSON document.

END_OBJECT

A2uiJsonToken A2uiJsonToken.END_OBJECT

Indicates the end of a JSON object.

NAME

A2uiJsonToken A2uiJsonToken.NAME

Indicates a JSON property name.

NULL

A2uiJsonToken A2uiJsonToken.NULL

Indicates a JSON null literal.

NUMBER

A2uiJsonToken A2uiJsonToken.NUMBER

Indicates a JSON numeric value.

STRING

A2uiJsonToken A2uiJsonToken.STRING

Indicates a JSON string value.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull A2uiJsonTokengetEntries()

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

valueOf

Added in 1.0.0-alpha01
public static final @NonNull A2uiJsonToken valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 1.0.0-alpha01
public static final @NonNull A2uiJsonToken[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using entries property as a more efficient alternative returning an immutable list of enum entries.