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

InspectableProperty.FlagEntry

{% setvar page_path %}dokkatest/platform/InspectableProperty.FlagEntry.html{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "reference/_kotlin_switcher2.md" %}

annotation InspectableProperty.FlagEntry


One flag value of many that may be packed into a primitive {int}.

See also
IntFlagMapping

Summary

Public functions

abstract Int

A mask that the property will be bitwise anded with before comparing to the target.If set to 0 (the default), the value of target will be used as a mask.

abstract String

The string name of this flag.

abstract Int

A target value that the property's value must equal after masking.If a mask is not supplied (i.e., mask is 0), the target will be reused as themask.

Public functions

mask

abstract fun mask(): Int

A mask that the property will be bitwise anded with before comparing to the target.If set to 0 (the default), the value of target will be used as a mask. Zerowas chosen as the default since bitwise and with zero is always zero.

Returns
Int

A mask, or 0 to use the target as a mask

name

abstract fun name(): String

The string name of this flag.

Returns
String

A string name

target

abstract fun target(): Int

A target value that the property's value must equal after masking.If a mask is not supplied (i.e., mask is 0), the target will be reused as themask. This handles the common case where no flags mutually exclude each other.

Returns
Int

The target value to compare against