Added in API level 4

ViewDebug.FlagToString


public static abstract @interface ViewDebug.FlagToString
implements Annotation

android.view.ViewDebug.FlagToString


Defines a mapping from a flag to a String. Such a mapping can be used in an @ExportedProperty to provide more meaningful values to the end user.

Summary

Public methods

int equals()

The value to compare to the result of: original value & mask().

int mask()

The mask to apply to the original value.

String name()

The String to use in place of the original int value.

boolean outputIf()

Indicates whether to output the flag when the test is true, or false.

Inherited methods

abstract Class<? extends Annotation> annotationType()

Returns the annotation interface of this annotation.

abstract boolean equals(Object obj)

Returns true if the specified object represents an annotation that is logically equivalent to this one.

abstract int hashCode()

Returns the hash code of this annotation.

abstract String toString()

Returns a string representation of this annotation.

Public methods

equals

Added in API level 4
public int equals ()

The value to compare to the result of: original value & mask().

Returns
int An arbitrary value.

mask

Added in API level 4
public int mask ()

The mask to apply to the original value.

Returns
int An arbitrary int value.

name

Added in API level 4
public String name ()

The String to use in place of the original int value.

Returns
String An arbitrary non-null String.

outputIf

Added in API level 4
public boolean outputIf ()

Indicates whether to output the flag when the test is true, or false. Defaults to true.

Returns
boolean