Packages

object Diff

Compares IdmlValue objects and creates a diff.

This aims to be similar to the results of a text diff tool except it works on deeply nested object graphs.

In order to do this we introduce a new Diff IdmlValue type which is equivalent to a json array of the form ["DIFF", left, right] in each case where the left and right side do not match, or otherwise return the original value if both sides match.

diff( {x: {y: A, z: B}}, {x: {y: A, z: C}} ) = {x: {y: A, z: [DIFF, B, C] }}

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Diff
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def compare(left: IdmlValue, right: IdmlValue): IdmlValue

    Compare two values

  7. def compare(tuple: (IdmlValue, IdmlValue)): IdmlValue

    Compare two values in a tuple

  8. def compareArrays(left: IdmlArray, right: IdmlArray): IdmlValue

    Compare two arrays

  9. def compareObjects(left: IdmlObject, right: IdmlObject): IdmlValue

    Compare two objects

  10. def createDiff(left: IdmlValue, right: IdmlValue): IdmlValue

    Create a diff marker

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def isDiff(value: IdmlValue): Boolean

    Determine if a value is a diff

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val mapper: ObjectMapper
  19. val marker: IdmlValue
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def pretty(result: IdmlValue): String

    Render a diff tree

  24. def pretty(left: IdmlValue, right: IdmlValue): String

    Render a DataNode hierarchy as a pretty-printed json dom

  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped