trait Operations extends OptionalFieldOperations
Defines a set of operations to update Json values.
- Self Type
- Operations with ExtraImplicits
- Alphabetic
- By Inheritance
- Operations
- OptionalFieldOperations
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
MapOperation
extends Operation
A MapOperation is one that expect an old value to be available.
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 append(update: Update): Operation
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def extract[M[_], T](value: Lens[M])(f: (M[T]) ⇒ Update): Operation
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
modify[T](f: (T) ⇒ T)(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation
The
modifyoperation applies a function on the (converted) value -
def
modifyOrDeleteField[T](f: (T) ⇒ Option[T])(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation
The
modifyOrDeleteFieldoperation works together with theoptionalFieldlens.The
modifyOrDeleteFieldoperation works together with theoptionalFieldlens. The passed function is called for every existing field. If the function returnsSome(value), this will become the new value. If the function returnsNonethe field will be deleted.- Definition Classes
- OptionalFieldOperations
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
set[T](t: ⇒ T)(implicit arg0: JsonWriter[T]): Operation
The set operation sets or creates a value.
-
def
setOrUpdateField[T](default: ⇒ T)(f: (T) ⇒ T)(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation
The
setOrUpdateFieldoperation sets or updates an optionalField.The
setOrUpdateFieldoperation sets or updates an optionalField.- Definition Classes
- OptionalFieldOperations
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def update(update: Update): Operation
-
def
updateOptionalField[T](f: (Option[T]) ⇒ Option[T])(implicit arg0: Reader[T], arg1: JsonWriter[T]): Operation
The
updateOptionalFieldoperation works together with theoptionalFieldlens.The
updateOptionalFieldoperation works together with theoptionalFieldlens. It allows to a) create a previously missing field b) update an existing field value c) remove an existing field d) ignore a missing field.- Definition Classes
- OptionalFieldOperations
-
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( ... )