interface FinalStep<T, R>
(source)
Final step in the change-subject-process, creates a ChangedSubjectPostStep ased on the previously specified options.
T
- the type of the current subject.
R
- the type of the new subject.
abstract val failureHandler: SubjectChanger.FailureHandler<T, R>
The previously specified SubjectChanger.FailureHandler. |
|
abstract val transformation: (T) -> Option<R>
The previously specified new subject. |
|
abstract val transformationStep: SubjectChangerBuilder.TransformationStep<T>
The so far chosen options up to the TransformationStep step. |
abstract fun build(): ChangedSubjectPostStep<T, R>
Finishes the |
fun <T, R> create(transformationStep: SubjectChangerBuilder.TransformationStep<T>, transformation: (T) -> Option<R>, failureHandler: SubjectChanger.FailureHandler<T, R>): SubjectChangerBuilder.FinalStep<T, R>
Creates the FinalStep in the context of the SubjectChangerBuilder. |