Class

io.scalaland.chimney.dsl

PatcherUsing

Related Doc: package dsl

Permalink

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

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

Instance Constructors

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

    Permalink

    obj

    object to patch

    objPatch

    patch object

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  10. def ignoreNoneInPatch: PatcherUsing[T, P, IgnoreNoneInPatch[C]]

    Permalink

    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

    See also

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

  11. def ignoreRedundantPatcherFields: PatcherUsing[T, P, IgnoreRedundantPatcherFields[C]]

    Permalink

    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

    See also

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

  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  16. val obj: T

    Permalink

    object to patch

  17. val objPatch: P

    Permalink

    patch object

  18. macro def patch: T

    Permalink

    Applies configured patching in-place

    Applies configured patching in-place

    returns

    patched value

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped