final class PatcherUsing[T, P, C <: PatcherCfg] extends AnyRef
Provides operations to customize patcher logic for specific object value and patch value.
- T
type of object to apply patch to
- P
type of patch object
- C
type-level encoded configuration of patcher
- Since
0.4.0
- Alphabetic
- By Inheritance
- PatcherUsing
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
PatcherUsing(obj: T, objPatch: P)
- 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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
ignoreNoneInPatch: PatcherUsing[T, P, IgnoreNoneInPatch[C]]
In case when both object to patch and patch value contain field of type
Option[T], this option allows to treatNonevalue in patch like the value was not provided.In case when both object to patch and patch value contain field of type
Option[T], this option allows to treatNonevalue in patch like the value was not provided.By default, when
Noneis delivered in patch, Chimney clears the value of such field on patching.- Since
0.4.0
- See also
https://scalalandio.github.io/chimney/patchers/options-handling.html for more details
-
def
ignoreRedundantPatcherFields: PatcherUsing[T, P, IgnoreRedundantPatcherFields[C]]
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.
- Since
0.4.0
- See also
https://scalalandio.github.io/chimney/patchers/redundant-fields.html 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() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val obj: T
- val objPatch: P
-
macro
def
patch: T
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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated