Packages

c

io.scalaland.chimney.syntax

TransformationMatchingPathOps

implicit final class TransformationMatchingPathOps[A] extends AnyVal

Allows subtype matching when selecting path to override in Chimney DSL.

A

type to match

Since

1.0.0

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransformationMatchingPathOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TransformationMatchingPathOps(a: A)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def matching[B <: A]: B

    Allows paths like _.adt.matching[Subtype].field when selecting the target fields to override in Chimney DSL.

    Allows paths like _.adt.matching[Subtype].field when selecting the target fields to override in Chimney DSL.

    It can only be used within .withField* methods where the macros reads it and erases it from the final code!

    B

    subtype for which override should be provided

    returns

    stubs value of selected subtype

    Annotations
    @compileTimeOnly( ... )
    Since

    1.0.0

  8. def matchingLeft[LV, RV, L, R](implicit ev: Of[A, LV, RV, L, R]): LV

    Allows paths like _.either.matchingLeft when selecting the target fields to override in Chimney DSL.

    Allows paths like _.either.matchingLeft when selecting the target fields to override in Chimney DSL.

    It can only be used within .withField* methods where the macros reads it and erases it from the final code!

    returns

    stubs a value extracted from Left

    Annotations
    @compileTimeOnly( ... )
    Since

    1.0.0

  9. def matchingRight[LV, RV, L, R](implicit ev: Of[A, LV, RV, L, R]): RV

    Allows paths like _.either.matchingRight.field when selecting the target fields to override in Chimney DSL.

    Allows paths like _.either.matchingRight.field when selecting the target fields to override in Chimney DSL.

    It can only be used within .withField* methods where the macros reads it and erases it from the final code!

    returns

    stubs a value extracted from Right

    Annotations
    @compileTimeOnly( ... )
    Since

    1.0.0

  10. def matchingSome[SV, S](implicit ev: Of[A, SV, S]): SV

    Allows paths like _.optional.matchingSome.field when selecting the target fields to override in Chimney DSL.

    Allows paths like _.optional.matchingSome.field when selecting the target fields to override in Chimney DSL.

    It can only be used within .withField* methods where the macros reads it and erases it from the final code!

    returns

    stubs a value extracted from Some

    Annotations
    @compileTimeOnly( ... )
    Since

    1.0.0

  11. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped