# InspectableProperty.FlagEntry

Artifact: [androidx.annotation:annotation](https://developer.android.com/jetpack/androidx/releases/annotation) [View Source](https://cs.android.com/search?q=file:androidx/annotation/InspectableProperty.jvm.kt+class:androidx.annotation.InspectableProperty.FlagEntry) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.3.0)

*** ** * ** ***


```
@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS])
@Retention(value = AnnotationRetention.SOURCE)
public annotation InspectableProperty.FlagEntry
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This annotation is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

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

## Summary

| ### Public methods |
|---|---|
| `final int` | `[getMask](https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry#getMask())()` **This method is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[getName](https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry#getName())()` **This method is deprecated.** Replaced by the androidx.resourceinpsection package. |
| `final int` | `[getTarget](https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry#getTarget())()` **This method is deprecated.** Replaced by the androidx.resourceinpsection package. |

## Public methods

### getMask

```
public final int [getMask](https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry#getMask())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

A mask that the property will be bitwise anded with before comparing to the target.

If set to 0 (the default), the value of `https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry#(kotlin.String,kotlin.Int,kotlin.Int)` will be used as a mask. Zero was 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 |

### getName

```
public final @NonNull String [getName](https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry#getName())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

The string name of this flag.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | A string name |

### getTarget

```
public final int [getTarget](https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry#getTarget())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Replaced by the androidx.resourceinpsection package.

A target value that the property's value must equal after masking.

If a mask is not supplied (i.e., `https://developer.android.com/reference/androidx/annotation/InspectableProperty.FlagEntry#(kotlin.String,kotlin.Int,kotlin.Int)` is 0), the target will be reused as the mask. This handles the common case where no flags mutually exclude each other.

| Returns |
|---|---|
| `int` | The target value to compare against |