OrPatch

sealed trait OrPatch[Value, Value2, Patch, Patch2]

A patch which describes updates to either one value or another.

Companion:
object
class Object
trait Matchable
class Any
OrPatch[Value, Value2, Patch, Patch2]

Value members

Concrete methods

def apply(oldValue: Either[Value, Value2])(left: Differ[Value, Patch], right: Differ[Value2, Patch2]): Either[Value, Value2]

Applies an or patch to a value to produce a new value which represents the original value updated with the changes described by this patch.

Applies an or patch to a value to produce a new value which represents the original value updated with the changes described by this patch.

def combine(that: OrPatch[Value, Value2, Patch, Patch2]): OrPatch[Value, Value2, Patch, Patch2]

Combines two or patches to produce a new or patch that describes applying their changes sequentially.

Combines two or patches to produce a new or patch that describes applying their changes sequentially.