atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating.changers.impl.subjectchanger / FinalStepImpl

FinalStepImpl

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

Constructors

<init>

FinalStepImpl(transformationStep: SubjectChangerBuilder.TransformationStep<T>, transformation: (T) -> Option<R>, failureHandler: FailureHandler<T, R>)

Properties

failureHandler

val failureHandler: FailureHandler<T, R>

The previously specified SubjectChanger.FailureHandler.

transformation

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

The previously specified new subject.

transformationStep

val transformationStep: SubjectChangerBuilder.TransformationStep<T>

The so far chosen options up to the TransformationStep step.

Functions

build

fun build(): ChangedSubjectPostStep<T, R>

Finishes the reported subject change-process by building a new Expect taking the previously chosen options into account.