object PartialTransformer extends PartialTransformerCompanionPlatform
Companion of io.scalaland.chimney.PartialTransformer.
- Since
0.7.0
- See also
https://chimney.readthedocs.io/supported-transformations/#total-transformers-vs-partialtransformers
- Alphabetic
- By Inheritance
- PartialTransformer
- PartialTransformerCompanionPlatform
- PartialTransformerLowPriorityImplicits1
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
AutoDerived[From, To] extends AnyRef
Type class used when you want o allow using automatically derived transformations.
Type class used when you want o allow using automatically derived transformations.
When we want to only allow semiautomatically derived/manually defined instances you should use io.scalaland.chimney.PartialTransformer.
- 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
-
def
apply[From, To](f: (From) ⇒ Result[To]): PartialTransformer[From, To]
Construct ad-hoc instance of partial transformer from transforming function returning partial result.
Construct ad-hoc instance of partial transformer from transforming function returning partial result.
- From
type of input value
- To
type of output value
- f
transforming function returning partial result
- returns
io.scalaland.chimney.PartialTransformer type class instance
- Since
0.7.0
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
define[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]: PartialTransformer[From, To]
Provides io.scalaland.chimney.PartialTransformer derived with the default settings.
Provides io.scalaland.chimney.PartialTransformer 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.PartialTransformer type class definition
- Definition Classes
- PartialTransformerCompanionPlatform
- Since
0.7.0
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fromFunction[From, To](f: (From) ⇒ To): PartialTransformer[From, To]
Construct ad-hoc instance of partial transformer from transforming function returning target value.
Construct ad-hoc instance of partial transformer from transforming function returning target value.
- From
type of input value
- To
type of output value
- f
transforming function returning target value
- returns
io.scalaland.chimney.PartialTransformer type class instance
- Since
0.7.0
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
liftTotal[From, To](t: Transformer[From, To]): PartialTransformer[From, To]
Lifts total transformer to partial transformer
Lifts total transformer to partial transformer
- From
type of input value
- To
type of output value
- t
instance of total transformer
- returns
io.scalaland.chimney.PartialTransformer type class instance
- Since
0.7.0
-
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()
-
implicit
def
partialTransformerFromCodecDecoder[Dto, Domain](implicit codec: Codec[Domain, Dto]): PartialTransformer[Dto, Domain]
Extracts io.scalaland.chimney.PartialTransformer from existing io.scalaland.chimney.Codec#decode.
Extracts io.scalaland.chimney.PartialTransformer from existing io.scalaland.chimney.Codec#decode.
- Dto
type of DTO value
- Domain
type of domain value
- Definition Classes
- PartialTransformerLowPriorityImplicits1
- Since
1.2.0
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
object
AutoDerived extends PartialTransformerAutoDerivedCompanionPlatform
- Since
0.8.0