Op

io.bullet.spliff.Diff.Op
See theOp companion trait
object Op

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Op.type

Members list

Type members

Classlikes

sealed trait DelIns extends DelInsMov

The super type of the two basic diff operations returned by Myers' Diff algorithm, Delete and Insert.

The super type of the two basic diff operations returned by Myers' Diff algorithm, Delete and Insert.

Attributes

Supertypes
trait DelInsMov
trait Op
class Object
trait Matchable
class Any
Known subtypes
class Delete
class Insert
sealed trait DelInsMov extends Op

The super type of Delete, Insert and Move.

The super type of Delete, Insert and Move.

Attributes

Supertypes
trait Op
class Object
trait Matchable
class Any
Known subtypes
trait DelIns
class Delete
class Insert
class Move
final case class Delete(baseIx: Int, count: Int) extends DelIns, Step[Nothing]

Represents a number of contiguous elements that is present in the base sequence but not in the target.

Represents a number of contiguous elements that is present in the base sequence but not in the target.

Value parameters

baseIx

the index of the first element in the base sequence that is deleted

count

the number of elements in the deleted chunk

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Step[Nothing]
trait DelIns
trait DelInsMov
trait Op
class Object
trait Matchable
class Any
Show all
final case class Insert(baseIx: Int, targetIx: Int, count: Int) extends DelIns

Represents a number of contiguous elements that is present in the target sequence but not in the base.

Represents a number of contiguous elements that is present in the target sequence but not in the base.

Value parameters

baseIx

the index of the element in the base sequence where the new elements are inserted

count

the number of elements in the inserted chunk

targetIx

the index of the first element in the target sequence that is inserted

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait DelIns
trait DelInsMov
trait Op
class Object
trait Matchable
class Any
Show all
final case class Move(origIx: Int, destIx: Int, count: Int) extends DelInsMov, 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 parameters

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)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Step[Nothing]
trait DelInsMov
trait Op
class Object
trait Matchable
class Any
Show all
final case class Replace(baseIx: Int, delCount: Int, targetIx: Int, insCount: Int) extends Op

Represents a number of contiguous elements in the base that was replaced with a chunk of a potentially differing (non-zero) length in the target.

Represents a number of contiguous elements in the base that was replaced with a chunk of a potentially differing (non-zero) length in the target.

This operation is essentially a combination of a Delete and an Insert at the same baseIx.

Value parameters

baseIx

the index of the first element in the base sequence that are replaced

delCount

the number of elements in the base sequence that are replaced

insCount

the number of elements that are inserted from the target sequence

targetIx

the index of the first element in the target sequence that are inserted

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Op
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Implicits

Implicits

implicit def ordering[T <: Op]: Ordering[T]