Move

final case class Move(origIx: Int, destIx: Int, count: Int) extends DelInsMov with Step[Nothing]

Represents a number of contiguous elements that is present in both the base and target sequences but in a different position in the sequence relative to its surrounding elements.

Represents a number of contiguous elements that is present in both the base and target sequences but in a different position in the sequence relative to its surrounding elements.

Value Params
count

the number of elements in the moved chunk

destIx

the index into the base sequence where the elements are moved to (i.e. inserted)

origIx

the index into the base sequence where the elements are moved from (i.e. deleted)

trait Serializable
trait Product
trait Equals
trait Step[Nothing]
trait DelInsMov
trait Op
class Object
trait Matchable
class Any

Value members

Concrete methods

def baseIx: Int
def isBackwardMove: Boolean

True if this operation moves elements from lower indices to higher indices

True if this operation moves elements from lower indices to higher indices

def isForwardMove: Boolean

True if this operation moves elements from higher indices to lower indices

True if this operation moves elements from higher indices to lower indices

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product