doc / ch.tutteli.atrium.domain.builders.utils / toNullOr

toNullOr

fun <T : Any> ArgumentMapperBuilder<T?>.toNullOr(): ArgumentToNullOrMapperBuilder<T>
Deprecated: Use ArgumentMapperBuilder, mapArguments respectively, from atrium-logic; will be removed with 1.0.0

Maps each argument to null if it is already null and if not, then ...

... what happens otherwise needs to be specified in the next step.

Notice, a future version might constrain T with a lower bound Nothing?.

Returns
The mapped ArgumentMapperBuilder.first and ArgumentMapperBuilder.others.