Added in API level 1

ViewDebug.IntToString


public static abstract @interface ViewDebug.IntToString
implements Annotation

android.view.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.

Summary

Public methods

int from()

The original int value to map to a String.

String to()

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

Inherited methods

abstract Class<? extends Annotation> annotationType()

Returns the annotation interface of this annotation.

abstract boolean equals(Object obj)

Returns true if the specified object represents an annotation that is logically equivalent to this one.

abstract int hashCode()

Returns the hash code of this annotation.

abstract String toString()

Returns a string representation of this annotation.

Public methods

from

Added in API level 1
public int from ()

The original int value to map to a String.

Returns
int An arbitrary int value.

to

Added in API level 1
public String to ()

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

Returns
String An arbitrary non-null String.