# KeyedPdfAnnotation

Artifact: [androidx.pdf:pdf-core](https://developer.android.com/jetpack/androidx/releases/pdf) [View Source](https://cs.android.com/search?q=file:androidx/pdf/annotation/content/KeyedPdfAnnotation.kt+class:androidx.pdf.annotation.content.KeyedPdfAnnotation) Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

*** ** * ** ***


```
public final class KeyedPdfAnnotation
```

<br />

*** ** * ** ***

Associates a `https://developer.android.com/reference/androidx/pdf/annotation/content/PdfAnnotation` with a unique key.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/pdf/annotation/content/KeyedPdfAnnotation#KeyedPdfAnnotation(kotlin.String,androidx.pdf.annotation.content.PdfAnnotation)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/annotation/content/PdfAnnotation annotation)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/pdf/annotation/content/KeyedPdfAnnotation#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/annotation/content/PdfAnnotation` | `https://developer.android.com/reference/androidx/pdf/annotation/content/KeyedPdfAnnotation#getAnnotation()()` The `https://developer.android.com/reference/androidx/pdf/annotation/content/PdfAnnotation` object. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/pdf/annotation/content/KeyedPdfAnnotation#getKey()()` The unique string identifier for the annotation. |
| `int` | `https://developer.android.com/reference/androidx/pdf/annotation/content/KeyedPdfAnnotation#hashCode()()` |

## Public constructors

### KeyedPdfAnnotation

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
public KeyedPdfAnnotation(@NonNull String key, @NonNull PdfAnnotation annotation)
```

## Public methods

### equals

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

### getAnnotation

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

```
public final @NonNull PdfAnnotation getAnnotation()
```

The `https://developer.android.com/reference/androidx/pdf/annotation/content/PdfAnnotation` object.

### getKey

Added in [1.0.0-beta01](https://developer.android.com/jetpack/androidx/releases/pdf#1.0.0-beta01)

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

The unique string identifier for the annotation.

### hashCode

```
public int hashCode()
```