object Transformer extends TransformerCompanionPlatform
Companion of io.scalaland.chimney.Transformer.
- Since
0.2.0
- See also
https://chimney.readthedocs.io/supported-transformations/#total-transformers-vs-partialtransformers
- Alphabetic
- By Inheritance
- Transformer
- TransformerCompanionPlatform
- TransformerLowPriorityImplicits1
- TransformerLowPriorityImplicits2
- TransformerLowPriorityImplicits3
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait AutoDerived[From, To] extends AnyRef
Type class used when you want to allow using automatically derived transformations.
Type class used when you want to allow using automatically derived transformations.
When we want to only allow semiautomatically derived/manually defined instances you should use io.scalaland.chimney.Transformer.
- From
type of input value
- To
type of output value
- Annotations
- @FunctionalInterface()
- Since
0.8.0
- See also
https://chimney.readthedocs.io/cookbook/#automatic-semiautomatic-and-inlined-derivation for more details
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(classOf[java.lang.CloneNotSupportedException]) @native()
- def define[From, To]: TransformerDefinition[From, To, Empty, Default]
Creates an empty io.scalaland.chimney.dsl.TransformerDefinition that you can customize to derive io.scalaland.chimney.Transformer.
Creates an empty io.scalaland.chimney.dsl.TransformerDefinition that you can customize to derive io.scalaland.chimney.Transformer.
- From
type of input value
- To
type of output value
- returns
io.scalaland.chimney.dsl.TransformerDefinition with defaults
- Since
0.4.0
- See also
io.scalaland.chimney.dsl.TransformerDefinition for available settings
- def definePartial[From, To]: PartialTransformerDefinition[From, To, Empty, Default]
Creates an empty io.scalaland.chimney.dsl.PartialTransformerDefinition that you can customize to derive io.scalaland.chimney.PartialTransformer.
Creates an empty io.scalaland.chimney.dsl.PartialTransformerDefinition that you can customize to derive io.scalaland.chimney.PartialTransformer.
- From
type of input value
- To
type of output value
- returns
io.scalaland.chimney.dsl.PartialTransformerDefinition with defaults
- Since
0.7.0
- See also
io.scalaland.chimney.dsl.PartialTransformerDefinition for available settings
- macro def derive[From, To]: Transformer[From, To]
Provides io.scalaland.chimney.Transformer derived with the default settings.
Provides io.scalaland.chimney.Transformer derived with the default settings.
When transformation can't be derived, it results with compilation error.
- From
type of input value
- To
type of output value
- returns
io.scalaland.chimney.Transformer type class instance
- Definition Classes
- TransformerCompanionPlatform
- Since
0.2.0
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit def transformerFromCodecEncoder[Domain, Dto](implicit codec: Codec[Domain, Dto]): Transformer[Domain, Dto]
Extracts io.scalaland.chimney.Transformer from existing io.scalaland.chimney.Codec#encode.
Extracts io.scalaland.chimney.Transformer from existing io.scalaland.chimney.Codec#encode.
- Domain
type of domain value
- Dto
type of DTO value
- Definition Classes
- TransformerLowPriorityImplicits3
- Since
1.2.0
- implicit def transformerFromIsoFirst[First, Second](implicit iso: Iso[First, Second]): Transformer[First, Second]
Extracts io.scalaland.chimney.Transformer from existing io.scalaland.chimney.Iso#left.
Extracts io.scalaland.chimney.Transformer from existing io.scalaland.chimney.Iso#left.
- First
input type of the first conversion, output type of the second conversion
- Second
output type of the first conversion, input type of the second conversion
- Definition Classes
- TransformerLowPriorityImplicits1
- Since
1.2.0
- implicit def transformerFromIsoSecond[First, Second](implicit iso: Iso[First, Second]): Transformer[Second, First]
Extracts io.scalaland.chimney.Transformer from existing io.scalaland.chimney.Iso#right.
Extracts io.scalaland.chimney.Transformer from existing io.scalaland.chimney.Iso#right.
- First
input type of the first conversion, output type of the second conversion
- Second
output type of the first conversion, input type of the second conversion
- Definition Classes
- TransformerLowPriorityImplicits2
- Since
1.2.0
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object AutoDerived extends TransformerAutoDerivedCompanionPlatform
- Since
0.8.0