interface Creator<S : Any, T : Any>
(source)
Represents the final step of a sophisticated type transformation
assertion builder which creates the
Assertion as such.
S
- The type of AssertionPlant.subject.
T
- The target type to which AssertionPlant.subject should have been transformed to.
abstract fun create(parameterObject: ParameterObject<S, T>, canBeTransformed: (S) -> Boolean, transform: (S) -> T, failureHandler: FailureHandler<S, T>): Unit
Creates the type transformation Assertion and ads it to the given ParameterObject.subjectPlant and delegates to the given failureHandler if the transformation fails. |