abstract class DiffsonInstance[JsValue] extends JsonDiffSupport[JsValue] with JsonPatchSupport[JsValue] with JsonPointerSupport[JsValue] with JsonSupport[JsValue]
- Alphabetic
- By Inheritance
- DiffsonInstance
- JsonSupport
- JsonPointerSupport
- JsonPatchSupport
- JsonDiffSupport
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DiffsonInstance()
Type Members
-
class
JsonDiff
extends AnyRef
Methods to compute diffs between two Json values
Methods to compute diffs between two Json values
- Definition Classes
- JsonDiffSupport
-
case class
Add
(path: Pointer, value: JsValue) extends DiffsonInstance.Operation with Product with Serializable
Add (or replace if existing) the pointed element
Add (or replace if existing) the pointed element
- Definition Classes
- JsonPatchSupport
-
case class
Copy
(from: Pointer, path: Pointer)(implicit pointer: DiffsonInstance.JsonPointer) extends DiffsonInstance.Operation with Product with Serializable
Copy the pointed element to the new position
Copy the pointed element to the new position
- Definition Classes
- JsonPatchSupport
-
case class
JsonPatch
(ops: List[DiffsonInstance.Operation]) extends Product with Serializable
A Json patch object according to http://tools.ietf.org/html/rfc6902
A Json patch object according to http://tools.ietf.org/html/rfc6902
- Definition Classes
- JsonPatchSupport
-
case class
Move
(from: Pointer, path: Pointer)(implicit pointer: DiffsonInstance.JsonPointer) extends DiffsonInstance.Operation with Product with Serializable
Move the pointed element to the new position
Move the pointed element to the new position
- Definition Classes
- JsonPatchSupport
-
sealed abstract
class
Operation
extends AnyRef
A patch operation to apply to a Json value
A patch operation to apply to a Json value
- Definition Classes
- JsonPatchSupport
-
case class
Remove
(path: Pointer, old: Option[JsValue] = None) extends DiffsonInstance.Operation with Product with Serializable
Remove the pointed element
Remove the pointed element
- Definition Classes
- JsonPatchSupport
-
case class
Replace
(path: Pointer, value: JsValue, old: Option[JsValue] = None) extends DiffsonInstance.Operation with Product with Serializable
Replace the pointed element by the given value
Replace the pointed element by the given value
- Definition Classes
- JsonPatchSupport
-
case class
Test
(path: Pointer, value: JsValue)(implicit pointer: DiffsonInstance.JsonPointer) extends DiffsonInstance.Operation with Product with Serializable
Test that the pointed element is equal to the given value
Test that the pointed element is equal to the given value
- Definition Classes
- JsonPatchSupport
-
class
WithFilter
extends AnyRef
- Definition Classes
- JsonPatchSupport
-
class
JsonPointer
extends AnyRef
A class to work with Json pointers according to http://tools.ietf.org/html/rfc6901.
A class to work with Json pointers according to http://tools.ietf.org/html/rfc6901. The behavior in case of invalid pointer is customizable by passing an error handler when instantiating.
- Definition Classes
- JsonPointerSupport
-
abstract
class
JsonProvider
extends AnyRef
The Json provider acts as an abstraction layer over the Json library.
The Json provider acts as an abstraction layer over the Json library. It exposes all methods and types used by diffson when manipulating Json values directly.
- Definition Classes
- JsonSupport
Abstract Value Members
- abstract val provider: JsonProvider
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from DiffsonInstance[JsValue] to any2stringadd[DiffsonInstance[JsValue]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (DiffsonInstance[JsValue], B)
- Implicit
- This member is added by an implicit conversion from DiffsonInstance[JsValue] to ArrowAssoc[DiffsonInstance[JsValue]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
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
- @throws( ... )
-
def
ensuring(cond: (DiffsonInstance[JsValue]) ⇒ Boolean, msg: ⇒ Any): DiffsonInstance[JsValue]
- Implicit
- This member is added by an implicit conversion from DiffsonInstance[JsValue] to Ensuring[DiffsonInstance[JsValue]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (DiffsonInstance[JsValue]) ⇒ Boolean): DiffsonInstance[JsValue]
- Implicit
- This member is added by an implicit conversion from DiffsonInstance[JsValue] to Ensuring[DiffsonInstance[JsValue]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): DiffsonInstance[JsValue]
- Implicit
- This member is added by an implicit conversion from DiffsonInstance[JsValue] to Ensuring[DiffsonInstance[JsValue]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): DiffsonInstance[JsValue]
- Implicit
- This member is added by an implicit conversion from DiffsonInstance[JsValue] to Ensuring[DiffsonInstance[JsValue]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
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] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from DiffsonInstance[JsValue] to StringFormat[DiffsonInstance[JsValue]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
implicit
val
pointer: JsonPointer
- Definition Classes
- JsonPointerSupport
-
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
- @throws( ... )
-
def
→[B](y: B): (DiffsonInstance[JsValue], B)
- Implicit
- This member is added by an implicit conversion from DiffsonInstance[JsValue] to ArrowAssoc[DiffsonInstance[JsValue]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
-
object
JsonDiff
extends DiffsonInstance.JsonDiff
Default
JsonDiff
instance that uses the patience algorithm to compute lcs for arraysDefault
JsonDiff
instance that uses the patience algorithm to compute lcs for arrays- Definition Classes
- JsonDiffSupport
-
object
JsonPatch
extends Serializable
JsonPatch companion object allowing to create
JsonPatch
objects from strings or operations.JsonPatch companion object allowing to create
JsonPatch
objects from strings or operations.- Definition Classes
- JsonPatchSupport
-
object
IntIndex
- Attributes
- protected[this]
- Definition Classes
- JsonPointerSupport