{% setvar book_path %}/reference/dokkatest/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ViewDebug.FlagToString

@Target(value = [ElementType.TYPE])
@Retention(value = RetentionPolicy.RUNTIME)
public annotation 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.

See also
ViewDebug.ExportedProperty

Summary

Public methods

abstract int

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

abstract int

The mask to apply to the original value.

abstract String

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

abstract boolean

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

Public methods

equals

public abstract int equals()

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

Returns
int

An arbitrary value.

mask

public abstract int mask()

The mask to apply to the original value.

Returns
int

An arbitrary int value.

name

public abstract String name()

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

Returns
String

An arbitrary non-null String.

outputIf

public abstract boolean outputIf()

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