Chunk

io.bullet.spliff.Diff.Chunk
See theChunk companion trait
object Chunk

Attributes

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

Members list

Type members

Classlikes

final case class Distinct[T](baseElements: Slice[T], targetElements: Slice[T]) extends Chunk[T]

A chunk, which combines two chunks that are unique to each sequence. The baseElements appear in the base sequence at the same relative position as the targetElements in the target sequence.

A chunk, which combines two chunks that are unique to each sequence. The baseElements appear in the base sequence at the same relative position as the targetElements in the target sequence.

Value parameters

baseElements

the slice of the base sequence

targetElements

the slice of the target sequence

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Chunk[T]
class Object
trait Matchable
class Any
Show all
final case class InBase[T](elements: Slice[T]) extends Chunk[T]

A chunk, which only appears in the base sequence.

A chunk, which only appears in the base sequence.

Value parameters

elements

the slice of the base sequence

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Chunk[T]
class Object
trait Matchable
class Any
Show all
final case class InBoth[T](baseElements: Slice[T], targetElements: Slice[T]) extends Chunk[T]

A chunk, which appears identically in both, the base and the target sequence. The baseElements and targetElements contain identical elements but may differ in their index ranges.

A chunk, which appears identically in both, the base and the target sequence. The baseElements and targetElements contain identical elements but may differ in their index ranges.

Value parameters

baseElements

the slice of the base sequence

targetElements

the slice of the target sequence

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Chunk[T]
class Object
trait Matchable
class Any
Show all
final case class InTarget[T](elements: Slice[T]) extends Chunk[T]

A chunk, which only appears in the target sequence.

A chunk, which only appears in the target sequence.

Value parameters

elements

the slice of the target sequence

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Chunk[T]
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