doc / ch.tutteli.atrium.creating / IDownCastBuilder / withNullRepresentation

withNullRepresentation

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

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.

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

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.