InspectableProperty.EnumEntry

Added in 1.1.0
Deprecated in 1.3.0

@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.SOURCE)
public annotation InspectableProperty.EnumEntry


One entry in an enumeration packed into a primitive {int}.

Summary

Public constructors

EnumEntry(@NonNull String name, int value)

Public methods

final @NonNull String

The string name of this enumeration value.

final int

The integer value of this enumeration value.

Public constructors

EnumEntry

public EnumEntry(@NonNull String name, int value)

Public methods

getName

public final @NonNull String getName()

The string name of this enumeration value.

Returns
@NonNull String

A string name

getValue

public final int getValue()

The integer value of this enumeration value.

Returns
int

An integer value