EditsDraft


open class EditsDraft

Known direct subclasses
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 functions

open operator Boolean
equals(other: Any?)
open Int
Pair<EditsDraftEditsDraft>
splitAt(index: Int)

Splits this EditsDraft into two separate drafts at the specified index with bounds [0, index) and [index, n).

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

splitAt

Added in 1.0.0-alpha19
fun splitAt(index: Int): Pair<EditsDraftEditsDraft>

Splits this EditsDraft into two separate drafts at the specified index with bounds [0, index) and [index, n).

Parameters
index: Int

The position at which to split the operations.

Returns
Pair<EditsDraftEditsDraft>

A Pair where first is an EditsDraft representing the range [0, index) and second is an EditsDraft representing the range [index, size).

Throws
IllegalArgumentException

if the index is strictly negative or greater than the total number of operations.