atrium-impl-robstoll / ch.tutteli.atrium.creating / DownCastBuilder / withNullRepresentation

withNullRepresentation

fun withNullRepresentation(representation: String): IDownCastBuilder<T, TSub>

Overrides IDownCastBuilder.withNullRepresentation

Use this method if you want to use your own null representation in error reporting (default is RawString.NULL).

Parameters

representation - The representation for null.

Return
This builder to support a fluent-style API.

fun withNullRepresentation(translatableRepresentation: ITranslatable): IDownCastBuilder<T, TSub>

Overrides IDownCastBuilder.withNullRepresentation

Use this method if you want to use your own null representation in error reporting (default is RawString.NULL).

Parameters

translatableRepresentation - A translatable representation for null.

Return
This builder to support a fluent-style API.