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

ViewDebug.FlagToString

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

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 functions

equals

abstract fun equals(): Int

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

Returns
Int

An arbitrary value.

mask

abstract fun mask(): Int

The mask to apply to the original value.

Returns
Int

An arbitrary int value.

name

abstract fun name(): String!

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

Returns
String!

An arbitrary non-null String.

outputIf

abstract fun outputIf(): Boolean

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