Packages

package chimney

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package dsl

    Main object to import in order to use Chimney's features

  2. package internal

Type Members

  1. sealed trait ErrorPathNode extends AnyRef
  2. trait Patcher[T, Patch] extends AnyRef

    Type class definition that wraps patching behavior.

    Type class definition that wraps patching behavior.

    T

    type of object to apply patch to

    Patch

    type of patch object

  3. case class TransformationError[M](message: M, errorPath: List[ErrorPathNode] = Nil) extends Product with Serializable

    Default implementation of error with path info

    Default implementation of error with path info

    M

    type of error message

    message

    error message value

    errorPath

    error location

  4. trait Transformer[From, To] extends AnyRef

    Type class expressing total transformation between source type From and target type To.

    Type class expressing total transformation between source type From and target type To.

    From

    type of input value

    To

    type of output value

  5. trait TransformerF[F[+_], From, To] extends AnyRef

    Type class expressing partial transformation between source type From and target type To, wrapping transformation result in type constructor F.

    Type class expressing partial transformation between source type From and target type To, wrapping transformation result in type constructor F.

    Useful for validated transformations, where result type is wrapped in Option, Either, Validated, etc...

    F

    wrapper type constructor

    From

    type of input value

    To

    type of output value

    See also

    io.scalaland.chimney.TransformerFSupport

  6. trait TransformerFErrorPathSupport[F[+_]] extends AnyRef

    Type class adding support or error path for lifted transformers.

    Type class adding support or error path for lifted transformers.

    If you implement it, you will be able to get path of each error in transformation.

    F

    wrapper type constructor

    See also

    TransformerFErrorPathSupport.TransformerFErrorPathEitherSupport for implementation for Either[C[TransformationError], +*]

  7. trait TransformerFSupport[F[+_]] extends AnyRef

    Type class supporting lifted transformers.

    Type class supporting lifted transformers.

    In order to create lifted transformation from A to F[B], we need these few operations to be implemented for specific F wrapper type.

    F

    wrapper type constructor

    See also

    TransformerFSupport.TransformerFOptionSupport for implementation for Option

    TransformerFSupport.TransformerFEitherErrorAccumulatingSupport for implementation for Either

Ungrouped