swapRow

open override fun swapRow(row: KRow, otherRow: KRow)

Swaps two rows in an inventory

Parameters

row

the first row

otherRow

the row to swap with


open override fun swapRow(index: Int, otherIndex: Int)

Swaps two rows based on their index

Parameters

index

of the first row

otherIndex

of the row to swap with