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

FinalStep

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

Final step in the extract-feature-process, creates a ExtractedFeaturePostStep based on the previously specified options.

Parameters

T - the type of the current subject.

R - the type of the feature, aka the new subject.

Properties

featureExtraction

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

The previously specified feature extraction lambda.

featureExtractionStep

abstract val featureExtractionStep: FeatureExtractorBuilder.FeatureExtractionStep<T>

The so far chosen options up to the FeatureExtractionStep step.

featureOptions

abstract val featureOptions: FeatureOptions<R>?

Either the previously specified FeatureOptions or null.

Functions

build

abstract fun build(): ExtractedFeaturePostStep<T, R>

Finishes the feature extraction-process by building a new Expect taking the previously chosen options into account.

Companion Object Functions

create

fun <T, R> create(featureExtractionStep: FeatureExtractorBuilder.FeatureExtractionStep<T>, featureExtraction: (T) -> Option<R>, featureOptions: FeatureOptions<R>?): FeatureExtractorBuilder.FinalStep<T, R>

Creates the FinalStep in the context of the FeatureExtractorBuilder.