Attribute.IntMap

public static abstract @interface Attribute.IntMap
implements Annotation

androidx.resourceinspection.annotation.Attribute.IntMap


One entry in a mapping of int values to enum or flag names.

Summary

Public methods

int mask()

Bit mask for this entry.

String name()

Name of the entry.

int value()

Enumeration ordinal or flag target value.

Inherited methods

Public methods

mask

public int mask ()

Bit mask for this entry.

If set to zero, the default, the annotation processor will assume the bitmask is the same as the target value(). Setting this value marks the entire Attribute.intMapping() as flag values.

Returns
int the bit

name

public String name ()

Name of the entry.

Returns
String the entry name

value

public int value ()

Enumeration ordinal or flag target value.

Returns
int the entry value