# EditsDraft

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

*** ** * ** ***


```
@ExperimentalPdfApi
public class EditsDraft
```

<br />

Known direct subclasses [MutableEditsDraft](https://developer.android.com/reference/androidx/pdf/MutableEditsDraft)

|---|---|
| `https://developer.android.com/reference/androidx/pdf/MutableEditsDraft` | A mutable builder for creating a sequence of draft edit operations. |

*** ** * ** ***

Represents a read-only sequence of draft edit operations for a PDF document.

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/pdf/EditsDraft#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/pdf/EditsDraft#hashCode()()` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/EditsDraft, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/EditsDraft>` | `https://developer.android.com/reference/androidx/pdf/EditsDraft#splitAt(kotlin.Int)(int index)` Splits this `https://developer.android.com/reference/androidx/pdf/EditsDraft` into two separate drafts at the specified index with bounds \[0, index) and \[index, n). |

## Public methods

### equals

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

### hashCode

```
public int hashCode()
```

### splitAt

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

```
public final @NonNull Pair<@NonNull EditsDraft, @NonNull EditsDraft> splitAt(int index)
```

Splits this `https://developer.android.com/reference/androidx/pdf/EditsDraft` into two separate drafts at the specified index with bounds \[0, index) and \[index, n).

| Parameters |
|---|---|
| `int index` | The position at which to split the operations. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/EditsDraft, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/pdf/EditsDraft>` | A `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html` where `first` is an `https://developer.android.com/reference/androidx/pdf/EditsDraft` representing the range `[0, index)` and `second` is an `https://developer.android.com/reference/androidx/pdf/EditsDraft` representing the range `[index, size)`. |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/androidx/pdf/EditsDraft#splitAt(kotlin.Int)` is strictly negative or greater than the total number of operations. |