PartialTransformerInto
Provides DSL for configuring io.scalaland.chimney.PartialTransformer's generation and using the result to transform value at the same time
Type parameters
- Flags
-
type-level encoded flags
- From
-
type of input value
- Overrides
-
type-level encoded config
- To
-
type of output value
Value parameters
- source
-
object to transform
- td
-
transformer definition
Attributes
- Since
-
0.7.0
- Graph
-
- Supertypes
-
trait WithRuntimeDataStoreclass Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Scope overrides to apply to all derivations matching [FromMatch, ToMatch].
Scope overrides to apply to all derivations matching [FromMatch, ToMatch].
Attributes
- Since
-
1.10.0
Apply configured partial transformation in-place.
Apply configured partial transformation in-place.
It runs macro that tries to derive instance of PartialTransformer[From, To] and immediately apply it to captured source value. When transformation can't be derived, it results with compilation error.
Attributes
- Returns
-
partial transformation result of type
partial.Result[To] - Since
-
0.7.0
Apply configured partial transformation in-place in a short-circuit (fail fast) mode.
Apply configured partial transformation in-place in a short-circuit (fail fast) mode.
It runs macro that tries to derive instance of PartialTransformer[From, To] and immediately apply it to captured source value. When transformation can't be derived, it results with compilation error.
Attributes
- Returns
-
partial transformation result of type
partial.Result[To] - Since
-
0.7.0
Use f instead of the primary constructor to construct the To value.
Use f instead of the primary constructor to construct the To value.
Macro will read the names of Eta-expanded method's/lambda's parameters and try to match them with From getters.
Values for each parameter can be provided the same way as if they were normal constructor's arguments.
Type parameters
- Ctor
-
type of the Eta-expanded method/lambda which should return
To
Value parameters
- f
-
method name or lambda which constructs
To
Attributes
- Returns
- See also
- Since
-
0.8.4
Use f instead of the primary constructor to parse into Either[String, To] value.
Use f instead of the primary constructor to parse into Either[String, To] value.
Macro will read the names of Eta-expanded method's/lambda's parameters and try to match them with From getters.
Values for each parameter can be provided the same way as if they were normal constructor's arguments.
Type parameters
- Ctor
-
type of the Eta-expanded method/lambda which should return
Either[String, To]
Value parameters
- f
-
method name or lambda which constructs
Either[String, To]
Attributes
- Returns
- See also
- Since
-
1.0.0
Use f instead of the primary constructor to parse into the Either value extracted from To using the selector.
Use f instead of the primary constructor to parse into the Either value extracted from To using the selector.
Macro will read the names of Eta-expanded method's/lambda's parameters and try to match them with From getters.
Values for each parameter can be provided the same way as if they were normal constructor's arguments.
Type parameters
- Ctor
-
type of the Eta-expanded method/lambda which should return
Either[String, T] - T
-
type of the value which would be constructed with a custom constructor
Value parameters
- f
-
method name or lambda which constructs
Either[String, T] - selector
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
1.6.0
Use f instead of the primary constructor to parse into partial.Result[To] value.
Use f instead of the primary constructor to parse into partial.Result[To] value.
Macro will read the names of Eta-expanded method's/lambda's parameters and try to match them with From getters.
Values for each parameter can be provided the same way as if they were normal constructor's arguments.
Type parameters
- Ctor
-
type of the Eta-expanded method/lambda which should return
partial.Result[To]
Value parameters
- f
-
method name or lambda which constructs
partial.Result[To]
Attributes
- Returns
- See also
- Since
-
0.8.4
Use f instead of the primary constructor to parse into partial.Result[To] value.
Use f instead of the primary constructor to parse into partial.Result[To] value.
The resulting function receives a Boolean flag indicating whether the transformation is in fail-fast mode.
Macro will read the names of Eta-expanded method's/lambda's parameters and try to match them with From getters.
Values for each parameter can be provided the same way as if they were normal constructor's arguments.
Type parameters
- Ctor
-
type of the Eta-expanded method/lambda which should return
Boolean => partial.Result[To]
Value parameters
- f
-
method name or lambda which constructs
Boolean => partial.Result[To]
Attributes
- Returns
- See also
- Since
-
1.10.0
Use f instead of the primary constructor to parse into the value extracted from To using the selector.
Use f instead of the primary constructor to parse into the value extracted from To using the selector.
Macro will read the names of Eta-expanded method's/lambda's parameters and try to match them with From getters.
Values for each parameter can be provided the same way as if they were normal constructor's arguments.
Type parameters
- Ctor
-
type of the Eta-expanded method/lambda which should return
partial.Result[T] - T
-
type of the value which would be constructed with a custom constructor
Value parameters
- f
-
method name or lambda which constructs
partial.Result[T] - selector
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
1.6.0
Use f instead of the primary constructor to parse into the value extracted from To using the selector.
Use f instead of the primary constructor to parse into the value extracted from To using the selector.
The resulting function receives a Boolean flag indicating whether the transformation is in fail-fast mode.
Macro will read the names of Eta-expanded method's/lambda's parameters and try to match them with From getters.
Values for each parameter can be provided the same way as if they were normal constructor's arguments.
Type parameters
- Ctor
-
type of the Eta-expanded method/lambda which should return
Boolean => partial.Result[T] - T
-
type of the value which would be constructed with a custom constructor
Value parameters
- f
-
method name or lambda which constructs
Boolean => partial.Result[T] - selector
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
1.10.0
Use f instead of the primary constructor to construct the value extracted from To using the selector.
Use f instead of the primary constructor to construct the value extracted from To using the selector.
Macro will read the names of Eta-expanded method's/lambda's parameters and try to match them with From getters.
Values for each parameter can be provided the same way as if they were normal constructor's arguments.
Type parameters
- Ctor
-
type of the Eta-expanded method/lambda which should return
T - T
-
type of the value which would be constructed with a custom constructor
Value parameters
- f
-
method name or lambda which constructs
To - selector
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
1.6.0
Alias to withSealedSubtypeHandled.
Alias to withSealedSubtypeHandledPartial.
Alias to withSealedSubtypeHandledPartialFailFast.
Alias to withSealedSubtypeRenamed.
Alias to withSealedSubtypeUnmatched.
To use fallback when the source of type From is missing fields.
To use fallback when the source of type From is missing fields.
Fallbacks can be stacked - then they will be tried in the order in which they were added.
Type parameters
- FromFallback
-
type of the fallback value which would be checked for fields when the
Fromvalue would be missing
Value parameters
- fallback
-
fallback value which would be checked for fields when the
Fromvalue would be missing
Attributes
- Returns
- See also
- Since
-
1.7.0
To use fallback when the source of type T, extracted with selectorFrom, is missing fields.
To use fallback when the source of type T, extracted with selectorFrom, is missing fields.
Fallbacks can be stacked - then they will be tried in the order in which they were added.
Type parameters
- FromFallback
-
type of the fallback value which would be checked for fields when the
Fromvalue would be missing - T
-
type of the source value that fallback is provided for
Value parameters
- fallback
-
fallback value which would be checked for fields when the
Fromvalue would be missing - selectorFrom
-
path to the source value the fallback will be provided for
Attributes
- Returns
- See also
- Since
-
1.7.0
Use the function f to compute a value of the field picked using the selector.
Use the function f to compute a value of the field picked using the selector.
By default, if From is missing a field and it's not provided with some selector, the compilation fails.
Type parameters
- T
-
type of target field
- U
-
type of computed value
Value parameters
- f
-
function used to compute value of the target field
- selector
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
0.7.0
Use the function f to compute a value of the field picked using the selectorTo from a value extracted with selectorFrom as an input.
Use the function f to compute a value of the field picked using the selectorTo from a value extracted with selectorFrom as an input.
By default, if From is missing a field and it's not provided with some selectorTo, the compilation fails.
Type parameters
- S
-
- type of source field
- T
-
type of target field
- U
-
type of computed value
Value parameters
- f
-
function used to compute value of the target field
- selectorFrom
-
source field in
From, defined like_.name - selectorTo
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
1.6.0
Use the function f to compute a partial result for the field picked using the selector.
Use the function f to compute a partial result for the field picked using the selector.
By default, if From is missing a field and it's not provided with some selector, the compilation fails.
Type parameters
- T
-
type of target field
- U
-
type of computed value
Value parameters
- f
-
function used to compute value of the target field
- selector
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
0.7.0
Use the function f to compute a partial result for the field picked using the selector.
Use the function f to compute a partial result for the field picked using the selector.
The function receives a Boolean flag indicating whether the transformation is in fail-fast mode.
By default, if From is missing a field and it's not provided with some selector, the compilation fails.
Type parameters
- T
-
type of target field
- U
-
type of computed value
Value parameters
- f
-
function used to compute value of the target field
- selector
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
1.10.0
Use the function f to compute a partial result of the field picked using the selectorTo from a value extracted with selectorFrom as an input.
Use the function f to compute a partial result of the field picked using the selectorTo from a value extracted with selectorFrom as an input.
By default, if From is missing a field and it's not provided with some selector, the compilation fails.
Type parameters
- S
-
- type of source field
- T
-
type of target field
- U
-
type of computed value
Value parameters
- f
-
function used to compute value of the target field
- selectorFrom
-
source field in
From, defined like_.name - selectorTo
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
1.6.0
Use the function f to compute a partial result of the field picked using the selectorTo from a value extracted with selectorFrom as an input.
Use the function f to compute a partial result of the field picked using the selectorTo from a value extracted with selectorFrom as an input.
The function receives a Boolean flag indicating whether the transformation is in fail-fast mode.
By default, if From is missing a field and it's not provided with some selector, the compilation fails.
Type parameters
- S
-
- type of source field
- T
-
type of target field
- U
-
type of computed value
Value parameters
- f
-
function used to compute value of the target field
- selectorFrom
-
source field in
From, defined like_.name - selectorTo
-
target field in
To, defined like_.name
Attributes
- Returns
- See also
- Since
-
1.10.0
Use provided value for field picked using selector.
Use provided value for field picked using selector.
By default, if From is missing field picked by selector, compilation fails.
Type parameters
- T
-
type of target field
- U
-
type of provided value
Value parameters
- selector
-
target field in
To, defined like_.name - value
-
constant value to use for the target field
Attributes
- Returns
- See also
- Since
-
0.7.0
Use provided partial result value for field picked using selector.
Use provided partial result value for field picked using selector.
By default, if From is missing field picked by selector, compilation fails.
Type parameters
- T
-
type of target field
- U
-
type of provided value
Value parameters
- selector
-
target field in
To, defined like_.name - value
-
constant value to use for the target field
Attributes
- Returns
- See also
- Since
-
0.7.0
Use the selectorFrom field in From to obtain the value of the selectorTo field in To.
Use the selectorFrom field in From to obtain the value of the selectorTo field in To.
By default, if From is missing a field and it's not provided with some selectorTo, the compilation fails.
Type parameters
- T
-
type of source field
- U
-
type of target field
Value parameters
- selectorFrom
-
source field in
From, defined like_.originalName - selectorTo
-
target field in
To, defined like_.newName
Attributes
- Returns
- See also
- Since
-
0.7.0
Mark field as expected to be unused when it would fail UnusedFieldPolicy by default.
Mark field as expected to be unused when it would fail UnusedFieldPolicy by default.
Type parameters
- T
-
type of source field
Value parameters
- selectorFrom
-
source field in
From, defined like_.originalName
Attributes
- Returns
- See also
- Since
-
1.7.0
Use f to calculate the unmatched subtype when mapping one sealed/enum into another.
Use f to calculate the unmatched subtype when mapping one sealed/enum into another.
By default, if mapping one coproduct in From into another coproduct in To derivation expects that coproducts to have matching names of its components, and for every component in To field's type there is matching component in From type. If some component is missing it fails compilation unless provided replacement with this operation.
For convenience/readability withEnumCaseHandled alias can be used (e.g. for Scala 3 enums or Java enums).
It differs from withFieldComputed(_.matching[Subtype], src => ...), since withSealedSubtypeHandled matches on a From subtype, while .matching[Subtype] matches on a To value's piece.
Type parameters
- Subtype
-
type of sealed/enum instance
Value parameters
- f
-
function to calculate values of components that cannot be mapped automatically
Attributes
- Returns
- See also
- Since
-
1.0.0
Use f to calculate the unmatched subtype's partial.Result when mapping one sealed/enum into another.
Use f to calculate the unmatched subtype's partial.Result when mapping one sealed/enum into another.
By default, if mapping one coproduct in From into another coproduct in To derivation expects that coproducts to have matching names of its components, and for every component in To field's type there is matching component in From type. If some component is missing it fails compilation unless provided replacement with this operation.
For convenience/readability withEnumCaseHandledPartial alias can be used (e.g. for Scala 3 enums or Java enums).
It differs from withFieldComputedPartial(_.matching[Subtype], src => ...), since withSealedSubtypeHandled matches on a From subtype, while .matching[Subtype] matches on a To value's piece.
Type parameters
- Subtype
-
type of sealed/enum instance
Value parameters
- f
-
function to calculate values of components that cannot be mapped automatically
Attributes
- Returns
- See also
- Since
-
1.0.0
Use f to calculate the unmatched subtype's partial.Result when mapping one sealed/enum into another.
Use f to calculate the unmatched subtype's partial.Result when mapping one sealed/enum into another.
The function receives a Boolean flag indicating whether the transformation is in fail-fast mode.
By default, if mapping one coproduct in From into another coproduct in To derivation expects that coproducts to have matching names of its components, and for every component in To field's type there is matching component in From type. If some component is missing it fails compilation unless provided replacement with this operation.
For convenience/readability withEnumCaseHandledPartialFailFast alias can be used (e.g. for Scala 3 enums or Java enums).
It differs from withFieldComputedPartialFailFast(_.matching[Subtype], (src, failFast) => ...), since withSealedSubtypeHandledPartialFailFast matches on a From subtype, while .matching[Subtype] matches on a To value's piece.
Type parameters
- Subtype
-
type of sealed/enum instance
Value parameters
- f
-
function to calculate values of components that cannot be mapped automatically
Attributes
- Returns
- See also
- Since
-
1.10.0
Use the FromSubtype in From as a source for the ToSubtype in To.
Use the FromSubtype in From as a source for the ToSubtype in To.
Type parameters
- FromSubtype
-
type of sealed/enum instance
- ToSubtype
-
type of sealed/enum instance
Attributes
- Returns
- See also
- Since
-
1.2.0
Mark subtype as expected to be unmatched when it would fail UnmatchedSubtypePolicy by default.
Mark subtype as expected to be unmatched when it would fail UnmatchedSubtypePolicy by default.
Type parameters
- T
-
type of subtype
Value parameters
- selectorTo
-
target subtype in
To, defined like_.matching[Subtype]
Attributes
- Returns
- See also
- Since
-
1.7.0
Define a flag only on some source value using the selectorFrom, rather than globally.
Define a flag only on some source value using the selectorFrom, rather than globally.
Type parameters
- T
-
type of the source field
Value parameters
- selectorFrom
-
source field in
From, defined like_.name
Attributes
- Returns
-
io.scalaland.chimney.dsl.TransformerSourceFlagsDsl.OfPartialTransformerInto
- See also
- Since
-
1.6.0
Define a flag only on some source value using the selectorTo, rather than globally.
Define a flag only on some source value using the selectorTo, rather than globally.
Type parameters
- T
-
type of the target field
Value parameters
- selectorTo
-
target field in
To, defined like_.name
Attributes
- Returns
-
io.scalaland.chimney.dsl.TransformerTargetFlagsDsl.OfPartialTransformerInto
- See also
- Since
-
1.6.0
Deprecated methods
Renamed to withSealedSubtypeHandled.
Renamed to withSealedSubtypeHandled.
Attributes
- Since
-
0.1.2
- Deprecated
-
[Since version 1.0.0]Use .withSealedSubtypeHandled or .withEnumCaseHandled for more clarity
Renamed to withSealedSubtypeHandledPartial.
Renamed to withSealedSubtypeHandledPartial.
Attributes
- Since
-
0.7.0
- Deprecated
-
[Since version 1.0.0]Use .withSealedSubtypeHandledPartial or .withEnumCaseHandledPartial for more clarity
Inherited methods
Disable Java Beans naming convention (.getName, .isName) on From.
Disable Java Beans naming convention (.getName, .isName) on From.
Attributes
- See also
- Since
-
0.6.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable Java Beans naming convention (.setName(value)) on To.
Disable Java Beans naming convention (.setName(value)) on To.
Attributes
- See also
- Since
-
0.6.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable merging fallback collection values into the source collection value.
Disable merging fallback collection values into the source collection value.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable any custom way of comparing if source fields' names and target fields' names are matching.
Disable any custom way of comparing if source fields' names and target fields' names are matching.
Attributes
- See also
- Since
-
1.0.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable any custom way of comparing if source subtypes' names and target fields' names are matching.
Disable any custom way of comparing if source subtypes' names and target fields' names are matching.
Attributes
- See also
- Since
-
1.0.0
- Inherited from:
- TransformerSourceFlagsDsl (hidden)
Fail derivation if From type is missing field even if To has default value type for fields of T type.
Fail derivation if From type is missing field even if To has default value type for fields of T type.
This flag can be set in parallel to globally enabling default values with disableDefaultValues.
Attributes
- See also
- Since
-
1.2.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Fail derivation if From type is missing field even if To has default value for it.
Fail derivation if From type is missing field even if To has default value for it.
This flag can be set in parallel to enabling default values for specific field type with * disableDefaultValueOfType.
Attributes
- See also
- Since
-
0.1.9
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable merging fallback Either values into the source Either value.
Disable merging fallback Either values into the source Either value.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable not failing compilation on unresolved Java Beans naming convention (.setName(value)) in To.
Disable not failing compilation on unresolved Java Beans naming convention (.setName(value)) in To.
Attributes
- See also
- Since
-
0.8.3
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable any implicit conflict resolution preference that was set previously.
Disable any implicit conflict resolution preference that was set previously.
Attributes
- See also
- Since
-
0.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable using implicit conversions to transform one From into To.
Disable using implicit conversions to transform one From into To.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable inherited accessors lookup that was previously enabled by enableInheritedAccessors
Disable inherited accessors lookup that was previously enabled by enableInheritedAccessors
Attributes
- See also
- Since
-
0.8.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable printing the logs from the derivation process.
Disable printing the logs from the derivation process.
Attributes
- See also
-
https://chimney.readthedocs.io/troubleshooting/#debugging-macros for more details
- Since
-
0.8.0
- Inherited from:
- TransformerFlagsDsl (hidden)
Disable method accessors lookup that was previously enabled by enableMethodAccessors
Disable method accessors lookup that was previously enabled by enableMethodAccessors
Attributes
- See also
- Since
-
0.5.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable unpacking/wrapping with wrapper types (classes with have only 1 val, set in a constructor) even when they are not AnyVals.
Disable unpacking/wrapping with wrapper types (classes with have only 1 val, set in a constructor) even when they are not AnyVals.
Attributes
- See also
- Since
-
1.3.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable calling unary non-Unit methods with Java Beans naming convention (.setName(value)) in To.
Enable calling unary non-Unit methods with Java Beans naming convention (.setName(value)) in To.
Attributes
- See also
- Since
-
1.0.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable None fallback value for optional fields in To.
Disable None fallback value for optional fields in To.
Attributes
- See also
- Since
-
0.6.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable merging fallback Option values into the source Option value.
Disable merging fallback Option values into the source Option value.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable safe Option unwrapping by PartialTransformer - each Option to non-Option` has to be handled manually.
Disable safe Option unwrapping by PartialTransformer - each Option to non-Option` has to be handled manually.
Attributes
- See also
- Since
-
1.0.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable using scala.Predef.<:< or scala.Predef.=:= to prove that From is a subtype of To.
Disable using scala.Predef.<:< or scala.Predef.=:= to prove that From is a subtype of To.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Disable policy check for target subtypes that would not be used anywhere during transformation.
Disable policy check for target subtypes that would not be used anywhere during transformation.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerSourceFlagsDsl (hidden)
Disable policy check for source fields that would not be used anywhere during transformation.
Disable policy check for source fields that would not be used anywhere during transformation.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable Java Beans naming convention (.getName, .isName) on From.
Enable Java Beans naming convention (.getName, .isName) on From.
By default, only Scala conversions (.name) are allowed.
Attributes
- See also
- Since
-
0.2.1
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable Java Beans naming convention (.setName(value)) on To.
Enable Java Beans naming convention (.setName(value)) on To.
By default, only Scala conversions (.copy(name = value)) are allowed.
Attributes
- See also
- Since
-
0.2.1
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable merging fallback collection values into the source collection value.
Enable merging fallback collection values into the source collection value.
Value parameters
- strategy
-
parameter specifying which strategy should be used to merge fallbacks with source value
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable custom way of comparing if source fields' names and target fields' names are matching.
Enable custom way of comparing if source fields' names and target fields' names are matching.
Value parameters
- namesComparison
-
parameter specifying how names should be compared by macro
Attributes
- See also
- Since
-
1.0.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable custom way of comparing if source subtypes' names and target fields' names are matching.
Enable custom way of comparing if source subtypes' names and target fields' names are matching.
Value parameters
- namesComparison
-
parameter specifying how names should be compared by macro
Attributes
- See also
- Since
-
1.0.0
- Inherited from:
- TransformerSourceFlagsDsl (hidden)
Enable fallback to default case class values in To type for fields of T type.
Enable fallback to default case class values in To type for fields of T type.
By default, in such case derivation will fail. By enabling this flag, derivation will fallback to default value.
This flag can be set in parallel to globally enabling default values with enableDefaultValues.
Attributes
- See also
- Since
-
1.2.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable fallback to default case class values in To type.
Enable fallback to default case class values in To type.
By default, in such case derivation will fail. By enabling this flag, derivation will fallback to default value.
This flag can be set in parallel to enabling default values for specific field type with enableDefaultValueOfType.
Attributes
- See also
- Since
-
0.6.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable merging fallback Either values into the source Either value.
Enable merging fallback Either values into the source Either value.
Value parameters
- strategy
-
parameter specifying which strategy should be used to merge fallbacks with source value
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable not failing compilation on unresolved Java Beans naming convention (.setName(value)) in To.
Enable not failing compilation on unresolved Java Beans naming convention (.setName(value)) in To.
By default, presence of setters (.setName(value)) fails compilation unless setters are enabled and matched with a source field or provided valued.
Attributes
- See also
- Since
-
0.8.3
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable conflict resolution when both Transformer and PartialTransformer are available in the implicit scope.
Enable conflict resolution when both Transformer and PartialTransformer are available in the implicit scope.
Value parameters
- preference
-
parameter specifying which implicit transformer to pick in case of conflict
Attributes
- See also
- Since
-
0.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable using implicit conversions to transform one From into To.
Enable using implicit conversions to transform one From into To.
By default, implicit conversions are ignored.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable lookup in definitions inherited from supertype.
Enable lookup in definitions inherited from supertype.
By default, only values defined directly in the type are considered. With this flag supertype methods would not be filtered out
Attributes
- See also
- Since
-
0.8.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable printing the logs from the derivation process.
Enable printing the logs from the derivation process.
Attributes
- See also
-
https://chimney.readthedocs.io/troubleshooting/#debugging-macros for more details
- Since
-
0.8.0
- Inherited from:
- TransformerFlagsDsl (hidden)
Enable values to be supplied from method calls. Source method must be public and have no parameter list.
Enable values to be supplied from method calls. Source method must be public and have no parameter list.
By default, this is disabled because method calls may perform side effects (e.g. mutations)
Attributes
- See also
- Since
-
0.6.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable unpacking/wrapping with wrapper types (classes with have only 1 val, set in a constructor) even when they are not AnyVals.
Enable unpacking/wrapping with wrapper types (classes with have only 1 val, set in a constructor) even when they are not AnyVals.
By default, in such case compilation fails.
Attributes
- See also
- Since
-
1.3.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable calling unary non-Unit methods with Java Beans naming convention (.setName(value)) in To.
Enable calling unary non-Unit methods with Java Beans naming convention (.setName(value)) in To.
By default, only methods returning Unit (setName(value): Unit) could be considered setters.
Attributes
- See also
- Since
-
1.0.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Sets target value of optional field to None if field is missing from source type From.
Sets target value of optional field to None if field is missing from source type From.
By default, in such case compilation fails.
Attributes
- See also
- Since
-
0.2.1
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable merging fallback Option values into the source Option value.
Enable merging fallback Option values into the source Option value.
Value parameters
- strategy
-
parameter specifying which strategy should be used to merge fallbacks with source value
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable safe Option unwrapping by PartialTransformer - Option is automatically unwrapped to non-Option values, None is treated as empty value errors.
Enable safe Option unwrapping by PartialTransformer - Option is automatically unwrapped to non-Option values, None is treated as empty value errors.
This is the default behavior.
Attributes
- See also
- Since
-
1.0.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable using scala.Predef.<:< or scala.Predef.=:= to prove that From is a subtype of To.
Enable using scala.Predef.<:< or scala.Predef.=:= to prove that From is a subtype of To.
By default, such evidence is ignored.
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)
Enable policy check for target subtypes that would not be used anywhere during transformation.
Enable policy check for target subtypes that would not be used anywhere during transformation.
Value parameters
- unmatchedSubtypePolicy
-
parameter specifying how unmatched target subtypes should be treated
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerSourceFlagsDsl (hidden)
Enable policy check for source fields that would not be used anywhere during transformation.
Enable policy check for source fields that would not be used anywhere during transformation.
Value parameters
- unusedFieldPolicy
-
parameter specifying how unused source fields should be treated
Attributes
- See also
- Since
-
1.7.0
- Inherited from:
- TransformerTargetFlagsDsl (hidden)