interface FinalStep<T, R>
(source)
Final step in the help-me-to-call-SubjectChanger-process, which creates an ExecutionStep incorporating all chosen options and is able to call SubjectChanger accordingly.
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(): SubjectChangerBuilder.ExecutionStep<T, R>
Finishes the help-me-to-call-SubjectChanger-process by creating an ExecutionStep incorporating all previously chosen options. |
operator fun <T, R> invoke(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. |
class FinalStepImpl<T, R> : SubjectChangerBuilder.FinalStep<T, R> |