doc / ch.tutteli.atrium.domain.builders.creating.changers / FeatureOptions

FeatureOptions

data class FeatureOptions<R>
Deprecated: Use FeatureExtractorBuilder from atrium-logic and thus FeatureExpectOptions; will be removed with 1.0.0

Additional (non-mandatory) options for the FeatureExtractorBuilder to create an Expect.

Constructors

<init>

FeatureOptions(description: Translatable? = null, representationInsteadOfFeature: ((R) -> Any)? = null)

Additional (non-mandatory) options for the FeatureExtractorBuilder to create an Expect.

Properties

description

val description: Translatable?

Defines a custom description if not null.

representationInsteadOfFeature

val representationInsteadOfFeature: ((R) -> Any)?

Defines a custom representation based on a present subject if not null.

Functions

merge

fun merge(options: FeatureOptions<R>): FeatureOptions<R>

Merges the given options with this object creating a new FeatureOptions where defined properties in options will have precedence over properties defined in this instance.

toFeatureExpectOptions

fun toFeatureExpectOptions(): FeatureExpectOptions<R>