# CachedContext

# CachedContext


```
public final class CachedContext
```

<br />

*** ** * ** ***

Represents an identifier of a cached context that can be used in inference.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/CachedContext#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/CachedContext#getName()()` a unique name for the cached context. |
| `int` | `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/CachedContext#hashCode()()` |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getName

```
public final @NonNull String getName()
```

a unique name for the cached context.

### hashCode

```
public int hashCode()
```