c

io.scalaland.chimney.dsl

PatcherUsing

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PatcherUsing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PatcherUsing(obj: T, objPatch: P)

    obj

    object to patch

    objPatch

    patch object

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. 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 treat None value 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 treat None value in patch like the value was not provided.

    By default, when None is delivered in patch, Chimney clears the value of such field on patching.

    returns

    io.scalaland.chimney.dsl.PatcherUsing

    Since

    0.4.0

    See also

    https://scalalandio.github.io/chimney/patchers/options-handling.html for more details

  12. 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.

    returns

    io.scalaland.chimney.dsl.PatcherUsing

    Since

    0.4.0

    See also

    https://scalalandio.github.io/chimney/patchers/redundant-fields.html for more details

  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. val obj: T
  18. val objPatch: P
  19. macro def patch: T

    Applies configured patching in-place

    Applies configured patching in-place

    returns

    patched value

    Since

    0.4.0

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped