Move

data class Move<T>(from: Int, to: Int) : Patch<T>

A Patch saying, that an element has been moved from one position to another. This is only used on Seq with a corresponding IdProvider.

Parameters

from

old index of the element

to

new index of the element

Constructors

Move
Link copied to clipboard
js
fun Move(from: Int, to: Int)
old index of the element

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(from: Int, to: Int): Patch.Move<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

from
Link copied to clipboard
js
val from: Int
old index of the element
to
Link copied to clipboard
js
val to: Int
new index of the element