Delete

data class Delete<T>(start: Int, count: Int) : Patch<T>

A Patch saying, that one or more elements have been deleted

Parameters

count

the number of elements, that have to be deleted

start

the index of the first element, that has been deleted

Constructors

Delete
Link copied to clipboard
js
fun Delete(start: Int, count: Int = 1)
the index of the first element, that has been deleted

Functions

component1
Link copied to clipboard
js
operator fun component1(): Int
component2
Link copied to clipboard
js
operator fun component2(): Int
copy
Link copied to clipboard
js
fun copy(start: Int, count: Int = 1): Patch.Delete<T>
equals
Link copied to clipboard
js
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open override fun hashCode(): Int
map
Link copied to clipboard
js
open override fun <R> map(parentJob: Job, mapping: (T, Job) -> R): Patch<R>
nothing to be mapped here...
toString
Link copied to clipboard
js
open override fun toString(): String

Properties

count
Link copied to clipboard
js
val count: Int = 1
the number of elements, that have to be deleted
start
Link copied to clipboard
js
val start: Int
the index of the first element, that has been deleted