Packages

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.

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Patch
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Patch(baseSize: Int, targetSize: Int, steps: ArraySeq[Step[T]])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(base: IndexedSeq[T])(implicit ct: ClassTag[T]): Either[Failure, ArraySeq[T]]

    Applies this patch to the given base sequence, producing either the original target sequence or an error.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val baseSize: Int
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def productElementNames: Iterator[String]
    Definition Classes
    Product
  15. 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 base sequence, 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.

  16. val steps: ArraySeq[Step[T]]
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. val targetSize: Int
  19. def throwingApply(base: IndexedSeq[T])(implicit ct: ClassTag[T]): ArraySeq[T]

    Applies this patch to the given base sequence, producing the original target sequence or throwing a Patch.Failure.

  20. def tryApply(base: IndexedSeq[T])(implicit ct: ClassTag[T]): Try[ArraySeq[T]]

    Applies this patch to the given base sequence, producing a Try instance holding either the original target sequence or a Patch.Failure.

  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped