what If
An expression for invoking whatIf when the given boolean is true.
Return
Returns the original target object.
Parameters
An expression for invoking whatIf when the given boolean is true. If the given boolean is false, whatIfNot will be invoked instead of the whatIf.
Return
Returns the original target object.
Parameters
An expression for invoking whatIf when the given boolean is true. So it is useful when using with a chaining function like builder pattern or apply expression in kotlin.
Return
Returns the original target object.
Parameters
An expression for invoking whatIf when the given boolean is true. If the given boolean is false, whatIfNot will be invoked instead of the whatIf. So it is useful when using with a chaining function like builder pattern or apply expression in kotlin.
Return
Returns the original target object.
Parameters
An expression for invoking whatIf when the given lambda's return value is true. So it is useful when using with a chaining function like builder pattern or apply expression in kotlin.
Return
Returns the original target object.
Parameters
An expression for invoking whatIf when the given lambda's return value is true. If the given boolean is false, whatIfNot will be invoked instead of the whatIfDo. So it is useful when using with a chaining function like builder pattern or apply expression in kotlin.
Return
Returns the original target object.
Parameters
An expression for invoking whatIf when the target Boolean is not null and true.
Return
Returns the desired type of object.
Parameters
An executable lambda function if the Boolean is not null and true.