io.scalaland.chimney
Members list
Packages
Type members
Classlikes
Type class representing bidirectional conversion from the type that can be always converted (total transformation), usually the domain model, into type that has to be validated when converting back (partial transformation), usually the DTO model.
Type class representing bidirectional conversion from the type that can be always converted (total transformation), usually the domain model, into type that has to be validated when converting back (partial transformation), usually the DTO model.
Type parameters
- Domain
-
type of the domain value
- Dto
-
typeof the DTO value
Value parameters
- decode
-
conversion from DTO to domain model which can fail
- encode
-
conversion from domain model to DTO which is guaranteed to succeed
Attributes
- See also
- Since
-
1.2.0
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Companion of io.scalaland.chimney.Codec.
Companion of io.scalaland.chimney.Codec.
Attributes
Type class representing bidirectional conversion between isomorphic types, where conversion in each can always succeed (total transformation).
Type class representing bidirectional conversion between isomorphic types, where conversion in each can always succeed (total transformation).
Type parameters
- 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
Value parameters
- first
-
conversion the first type into the second type
- second
-
conversion the second type into the first type
Attributes
- See also
- Since
-
1.2.0
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Companion of io.scalaland.chimney.Iso.
Companion of io.scalaland.chimney.Iso.
Attributes
Type class expressing partial transformation between source type From and target type To, with the ability of reporting path-annotated transformation error(s).
Type class expressing partial transformation between source type From and target type To, with the ability of reporting path-annotated transformation error(s).
Type parameters
- From
-
type of input value
- To
-
type of output value
Attributes
- See also
- Since
-
0.7.0
- Note
-
You should not need to instantiate this class manually, if you can derive it - take a look at io.scalaland.chimney.PartialTransformer.derive and io.scalaland.chimney.PartialTransformer.define methods for that. Manual intantiation is only necessary if you want to add support for the transformation that is not supported out of the box. Even then consult https://chimney.readthedocs.io/cookbook/#integrations first!
- Companion
- object
- Supertypes
Companion of io.scalaland.chimney.PartialTransformer.
Companion of io.scalaland.chimney.PartialTransformer.
Attributes
- See also
- Since
-
0.7.0
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PartialTransformer.type
Type class definition that wraps patching behavior.
Type class definition that wraps patching behavior.
Type parameters
- A
-
type of object to apply patch to
- Patch
-
type of patch object
Attributes
- See also
- Since
-
0.1.3
- Note
-
You should not need to instantiate this class manually, if you can derive it - take a look at io.scalaland.chimney.Patcher.derive and io.scalaland.chimney.Patcher.define methods for that. Manual intantiation is only necessary if you want to add support for the transformation that is not supported out of the box. Even then consult https://chimney.readthedocs.io/cookbook/#integrations first!
- Companion
- object
- Supertypes
Companion of io.scalaland.chimney.Patcher.
Companion of io.scalaland.chimney.Patcher.
Attributes
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.
Type parameters
- From
-
type of input value
- To
-
type of output value
Attributes
- See also
- Since
-
0.1.0
- Note
-
You should not need to instantiate this class manually, if you can derive it - take a look at io.scalaland.chimney.Transformer.derive and io.scalaland.chimney.Transformer.define methods for that. Manual intantiation is only necessary if you want to add support for the transformation that is not supported out of the box. Even then consult https://chimney.readthedocs.io/cookbook/#integrations first!
- Companion
- object
- Supertypes
Companion of io.scalaland.chimney.Transformer.
Companion of io.scalaland.chimney.Transformer.
Attributes
- See also
- Since
-
0.2.0
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Transformer.type