doc / ch.tutteli.atrium.domain.builders.creating.changers / SubjectChangerBuilder / FinalStep

FinalStep

interface FinalStep<T, R>
Deprecated: Use SubjectChangerBuilder.FinalStep from atrium-logic; will be removed with 1.0.0

Final step in the change-subject-process, creates a ChangedSubjectPostStep ased on the previously specified options.

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(): ChangedSubjectPostStep<T, R>

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

Companion Object Functions

create

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.