trait PartialTransformer[From, To] extends AutoDerived[From, To]
Type class expressing partial transformation between source type From and target type To, with the ability of
reporting path-annotated transformation error(s).
- From
type of input value
- To
type of output value
- Annotations
- @FunctionalInterface()
- Since
0.7.0
- See also
https://chimney.readthedocs.io/supported-transformations/#total-transformers-vs-partialtransformers
- Alphabetic
- By Inheritance
- PartialTransformer
- AutoDerived
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
transform(src: From, failFast: Boolean): Result[To]
Run transformation using provided value as a source.
Run transformation using provided value as a source.
- src
source value
- failFast
whether the transformation should return as early as the first set of errors appear (
true), or should it attempt to convert what it can and then aggregate all errors (false)- returns
io.scalaland.chimney.partial.Result of the transformation
- Definition Classes
- PartialTransformer → AutoDerived
- Since
0.7.0
Concrete 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( ... ) @native()
-
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] )
-
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
-
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
-
final
def
transform(src: From): Result[To]
Run transformation using provided value as a source in error accumulation mode.
Run transformation using provided value as a source in error accumulation mode.
- src
source value
- returns
io.scalaland.chimney.partial.Result of the transformation
- Since
0.7.0
-
final
def
transformFailFast(src: From): Result[To]
Run transformation using provided value as a source in short-circuit (fail fast) mode.
Run transformation using provided value as a source in short-circuit (fail fast) mode.
- src
source value
- returns
io.scalaland.chimney.partial.Result of the transformation
- Since
0.7.0
-
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()