doc / ch.tutteli.atrium / newDownCastBuilder

newDownCastBuilder

inline fun <reified TSub : T, T : Any> IAtriumFactory.newDownCastBuilder(description: ITranslatable, commonFields: CommonFields<T?>): IDownCastBuilder<T, TSub>

Prepares a down cast; use IDownCastBuilder.cast to perform the down cast.

Call IDownCastBuilder.withLazyAssertions/IDownCastBuilder.withNullRepresentation to specialise the down-cast.

Parameters

description - The description of the down-cast. commonFields - The commonFields which will be used to create a IDownCastBuilder.

Return
The newly created IDownCastBuilder.

See Also

IDownCastBuilder