doc / ch.tutteli.atrium.domain.builders.creating.changers / SubjectChangerBuilder / DescriptionRepresentationStep / withDescriptionAndRepresentation

withDescriptionAndRepresentation

open fun withDescriptionAndRepresentation(description: String, representation: Any?): SubjectChangerBuilder.TransformationStep<T>

Uses the given description and representation to represent the change by delegating to the other overload which expects a Translatable instead of a String.

See the other overload for further information.

abstract fun withDescriptionAndRepresentation(description: Translatable, representation: Any?): SubjectChangerBuilder.TransformationStep<T>

Uses the given description and representation to represent the change. Moreover, subsequent options in the building step allow to define rules when the change cannot be applied, in such a case an alternative description and representation might be used (depending on the implementation and chosen options).

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.