Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/view/ViewDebug.FlagToString#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/ViewDebug.FlagToString#inhmethods)

# ViewDebug.FlagToString

*** ** * ** ***

` public static abstract @interface ViewDebug.FlagToString `   
` implements https://developer.android.com/reference/java/lang/annotation/Annotation `

|---|
| android.view.ViewDebug.FlagToString |

<br />

*** ** * ** ***

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:**

- `https://developer.android.com/reference/android/view/ViewDebug.ExportedProperty`

## Summary

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/view/ViewDebug.FlagToString#equals()() ` The value to compare to the result of: `` original value & `https://developer.android.com/reference/android/view/ViewDebug.FlagToString#mask()` ``. |
| ` int` | ` https://developer.android.com/reference/android/view/ViewDebug.FlagToString#mask()() ` The mask to apply to the original value. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/view/ViewDebug.FlagToString#name()() ` The String to use in place of the original int value. |
| ` boolean` | ` https://developer.android.com/reference/android/view/ViewDebug.FlagToString#outputIf()() ` Indicates whether to output the flag when the test is true, or false. |

### Inherited methods

From interface ` https://developer.android.com/reference/java/lang/annotation/Annotation ` ` abstract https://developer.android.com/reference/java/lang/Class<? extends https://developer.android.com/reference/java/lang/annotation/Annotation>` ` https://developer.android.com/reference/java/lang/annotation/Annotation#annotationType()() `

Returns the annotation interface of this annotation.
` abstract boolean` ` https://developer.android.com/reference/java/lang/annotation/Annotation#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Returns true if the specified object represents an annotation that is logically equivalent to this one.
` abstract int` ` https://developer.android.com/reference/java/lang/annotation/Annotation#hashCode()() `

Returns the hash code of this annotation.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/annotation/Annotation#toString()() `

Returns a string representation of this annotation.

## Public methods

### equals

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int equals ()
```

The value to compare to the result of: `` original value & `https://developer.android.com/reference/android/view/ViewDebug.FlagToString#mask()` ``.

<br />

| Returns ||
|---|---|
| `int` | An arbitrary value. <br /> |

### mask

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int mask ()
```

The mask to apply to the original value.

<br />

| Returns ||
|---|---|
| `int` | An arbitrary int value. <br /> |

### name

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String name ()
```

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

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | An arbitrary non-null String. <br /> |

### outputIf

Added in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean outputIf ()
```

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

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |