Package com.skydoves.whatif
Functions
An expression for removing a collection of element and invoking whatIf when the element is not null.
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.
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.
An expression for invoking whatIf when the target object is not null and true. If the target is null or false, whatIfNot will be invoked instead of the whatIf.\
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.
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.
An expression for operating And
operator to a list of the nullable-Boolean.
An expression for invoking whatIf when the target object is not null and false.
An expression for invoking whatIf when the given boolean value. If the given boolean value is false, the result value is the default. It is useful when the receiver T and the result R should be different.
An expression for invoking whatIf when the T target object is not null. It is useful when the receiver T and the result R should be different.
An expression for invoking whatIf when the given boolean value. If the given boolean value is false, the result value is the default. It is useful when the receiver T and the result R should be different.
An expression for invoking whatIf when the BooleanArray is not null and not empty.
An expression for invoking whatIf when the DoubleArray is not null and not empty.
An expression for invoking whatIf when the FloatArray is not null and not empty.
An expression for invoking whatIf when the ShortArray is not null and not empty.
An expression for invoking whatIf when the Array is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the BooleanArray is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the ByteArray is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the CharArray is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the DoubleArray is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the FloatArray is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the IntArray is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the LongArray is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the ShortArray is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the String is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for invoking whatIf when the List is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf
An expression for invoking whatIf when the Map is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.
An expression for operating Or
operator to a list of the nullable-Boolean.