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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Diff
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
compare(left: IdmlValue, right: IdmlValue): IdmlValue
Compare two values
-
def
compare(tuple: (IdmlValue, IdmlValue)): IdmlValue
Compare two values in a tuple
-
def
compareArrays(left: IdmlArray, right: IdmlArray): IdmlValue
Compare two arrays
-
def
compareObjects(left: IdmlObject, right: IdmlObject): IdmlValue
Compare two objects
-
def
createDiff(left: IdmlValue, right: IdmlValue): IdmlValue
Create a diff marker
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isDiff(value: IdmlValue): Boolean
Determine if a value is a diff
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val mapper: ObjectMapper
- val marker: IdmlValue
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pretty(result: IdmlValue): String
Render a diff tree
-
def
pretty(left: IdmlValue, right: IdmlValue): String
Render a DataNode hierarchy as a pretty-printed json dom
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )