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

ViewDebug.IntToString

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

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 methods

from

public abstract int from()

The original int value to map to a String.

Returns
int

An arbitrary int value.

to

public abstract String to()

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

Returns
String

An arbitrary non-null String.