final class PatcherUsing[A, Patch, Overrides <: PatcherOverrides, Flags <: PatcherFlags] extends PatcherFlagsDsl[[Flags1]PatcherUsing[A, Patch, Overrides, Flags1], Flags]
Provides operations to customize io.scalaland.chimney.Patcher logic for specific object value and patch value.
- A
type of object to apply patch to
- Patch
type of patch object
- Overrides
type-level encoded config
- Flags
type-level encoded flags
- Since
0.4.0
- Alphabetic
- By Inheritance
- PatcherUsing
- PatcherFlagsDsl
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PatcherUsing(obj: A, objPatch: Patch)
- obj
object to patch
- objPatch
patch object
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 clearOnNoneInPatch: PatcherUsing[A, Patch, Overrides, Disable[IgnoreNoneInPatch, Flags]]
Then there scala.Option is patching scala.Option, on scala.None value will be cleared.
Then there scala.Option is patching scala.Option, on scala.None value will be cleared.
- Definition Classes
- PatcherFlagsDsl
- Since
0.8.0
- See also
https://chimney.readthedocs.io/supported-patching/#treating-none-as-no-update-instead-of-set-to-none for more details
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def disableMacrosLogging: PatcherUsing[A, Patch, Overrides, Disable[MacrosLogging, Flags]]
Disable printing the logs from the derivation process.
Disable printing the logs from the derivation process.
- Definition Classes
- PatcherFlagsDsl
- Since
0.8.0
- See also
https://chimney.readthedocs.io/troubleshooting/#debugging-macros for more details
- def enableMacrosLogging: PatcherUsing[A, Patch, Overrides, Enable[MacrosLogging, Flags]]
Enable printing the logs from the derivation process.
Enable printing the logs from the derivation process.
- Definition Classes
- PatcherFlagsDsl
- Since
0.8.0
- See also
https://chimney.readthedocs.io/troubleshooting/#debugging-macros for more details
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def failRedundantPatcherFields: PatcherUsing[A, Patch, Overrides, Disable[IgnoreRedundantPatcherFields, Flags]]
Fail the compilation if there is a redundant field in patching object.
Fail the compilation if there is a redundant field in patching object.
- Definition Classes
- PatcherFlagsDsl
- Since
0.8.0
- See also
https://chimney.readthedocs.io/supported-patching/#ignoring-fields-in-patches for more details
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def ignoreNoneInPatch: PatcherUsing[A, Patch, Overrides, Enable[IgnoreNoneInPatch, Flags]]
In case when both object to patch and patch value contain field of type scala.Option, this option allows to treat scala.None value in patch as if the value was not provided.
In case when both object to patch and patch value contain field of type scala.Option, this option allows to treat scala.None value in patch as if the value was not provided.
By default, when scala.None is delivered in patch, Chimney clears the value of such field on patching.
- Definition Classes
- PatcherFlagsDsl
- Since
0.4.0
- See also
https://chimney.readthedocs.io/supported-patching/#treating-none-as-no-update-instead-of-set-to-none for more details
- def ignoreRedundantPatcherFields: PatcherUsing[A, Patch, Overrides, Enable[IgnoreRedundantPatcherFields, Flags]]
In case that patch object contains a redundant field (i.e.
In case that patch object contains a redundant field (i.e. field that is not present in patched object type), this option enables ignoring value of such fields and generate patch successfully.
By default, when Chimney detects a redundant field in patch object, it fails the compilation in order to prevent silent oversight of field name typos.
- Definition Classes
- PatcherFlagsDsl
- Since
0.4.0
- See also
https://chimney.readthedocs.io/supported-patching/#ignoring-fields-in-patches for more details
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- val obj: A
- val objPatch: Patch
- macro def patch[ImplicitScopeFlags <: PatcherFlags](implicit tc: PatcherConfiguration[ImplicitScopeFlags]): A
Applies configured patching in-place.
Applies configured patching in-place.
- returns
patched value
- Since
0.4.0
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()