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

ViewDebug.IntToString

@Target(value = [ElementType.TYPE])
@Retention(value = RetentionPolicy.RUNTIME)
annotation ViewDebug.IntToString


Defines a mapping from an int value 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 original int value to map to a String.

abstract String!
to()

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

Public functions

from

abstract fun from(): Int

The original int value to map to a String.

Returns
Int

An arbitrary int value.

to

abstract fun to(): String!

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

Returns
String!

An arbitrary non-null String.