final case class Patch[T](baseSize: Int, targetSize: Int, steps: ArraySeq[Step[T]]) extends Product with Serializable
A Patch encapsulates all information required to transform the base sequence into the target sequence.
In addition to the data of which elements need to be deleted and/or moved it also contains the actual elements that are to be inserted.
- Alphabetic
- By Inheritance
- Patch
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(base: IndexedSeq[T])(implicit ct: ClassTag[T]): Either[Failure, ArraySeq[T]]
Applies this patch to the given
basesequence, producing either the originaltargetsequence or an error. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val baseSize: Int
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def sorted: Patch[T]
Returns an equivalent patch that has all its steps sorted by
baseIx.Returns an equivalent patch that has all its steps sorted by
baseIx.NOTE: The steps will be sorted anyway during application of the patch against a
basesequence, so the steps can be held in any order in the Patch sequence. Pre-sorting of the steps as it is done here is therefore not required, but may be beneficial for presentation or other "normalization" processes. - val steps: ArraySeq[Step[T]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val targetSize: Int
- def throwingApply(base: IndexedSeq[T])(implicit ct: ClassTag[T]): ArraySeq[T]
Applies this patch to the given
basesequence, producing the originaltargetsequence or throwing a Patch.Failure. - def tryApply(base: IndexedSeq[T])(implicit ct: ClassTag[T]): Try[ArraySeq[T]]
Applies this patch to the given
basesequence, producing a Try instance holding either the originaltargetsequence or a Patch.Failure. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated