doc / ch.tutteli.atrium.logic.creating.transformers / SubjectChangerBuilder / FinalStep

FinalStep

interface FinalStep<T, R>

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.

Parameters

T - the type of the current subject.

R - the type of the new subject.

Properties

failureHandler

abstract val failureHandler: SubjectChanger.FailureHandler<T, R>

The previously specified SubjectChanger.FailureHandler.

transformation

abstract val transformation: (T) -> Option<R>

The previously specified new subject.

transformationStep

abstract val transformationStep: SubjectChangerBuilder.TransformationStep<T>

The so far chosen options up to the TransformationStep step.

Functions

build

abstract fun build(): SubjectChangerBuilder.ExecutionStep<T, R>

Finishes the help-me-to-call-SubjectChanger-process by creating an ExecutionStep incorporating all previously chosen options.

Companion Object Functions

invoke

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.

Inheritors

FinalStepImpl

class FinalStepImpl<T, R> : SubjectChangerBuilder.FinalStep<T, R>