atrium-domain-builders-jvm / ch.tutteli.atrium.domain.builders.creating.changers.impl.featureextractor / OptionsChooserImpl / withSubjectBasedRepresentation

withSubjectBasedRepresentation

fun withSubjectBasedRepresentation(representationProvider: (R) -> Any): Unit

Overrides OptionsChooser.withSubjectBasedRepresentation

Uses the given representationProvider which provides the representation for a given subject wrapped in Option instead of the so far defined representation (which defaults to the subject as such).

Notice, if you want to use text (e.g. a String) as representation, then wrap it into a RawString via RawString.create and pass the RawString instead.