whatIfNotNullOrEmpty

inline fun <T> Array<out T>?.whatIfNotNullOrEmpty(whatIf: (Array<out T>) -> Unit): Array<out T>?

An expression for invoking whatIf when the Array is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the Array it not null or empty.

inline fun <T> Array<out T>?.whatIfNotNullOrEmpty(whatIf: (Array<out T>) -> Unit, whatIfNot: () -> Unit): Array<out T>?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the Array it not null or empty.

whatIfNot

An executable lambda function if the Array it null or empty.

inline fun ByteArray?.whatIfNotNullOrEmpty(whatIf: (ByteArray) -> Unit): ByteArray?

An expression for invoking whatIf when the ByteArray is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the ByteArray it not null or empty.

inline fun ByteArray?.whatIfNotNullOrEmpty(whatIf: (ByteArray) -> Unit, whatIfNot: () -> Unit): ByteArray?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the ByteArray it not null or empty.

whatIfNot

An executable lambda function if the ByteArray it null or empty.

inline fun ShortArray?.whatIfNotNullOrEmpty(whatIf: (ShortArray) -> Unit): ShortArray?

An expression for invoking whatIf when the ShortArray is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the ShortArray it not null or empty.

inline fun ShortArray?.whatIfNotNullOrEmpty(whatIf: (ShortArray) -> Unit, whatIfNot: () -> Unit): ShortArray?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the ShortArray it not null or empty.

whatIfNot

An executable lambda function if the ShortArray it null or empty.

inline fun IntArray?.whatIfNotNullOrEmpty(whatIf: (IntArray) -> Unit): IntArray?

An expression for invoking whatIf when the IntArray is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the IntArray it not null or empty.

inline fun IntArray?.whatIfNotNullOrEmpty(whatIf: (IntArray) -> Unit, whatIfNot: () -> Unit): IntArray?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the IntArray it not null or empty.

whatIfNot

An executable lambda function if the IntArray it null or empty.

inline fun LongArray?.whatIfNotNullOrEmpty(whatIf: (LongArray) -> Unit): LongArray?

An expression for invoking whatIf when the LongArray is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the LongArray it not null or empty.

inline fun LongArray?.whatIfNotNullOrEmpty(whatIf: (LongArray) -> Unit, whatIfNot: () -> Unit): LongArray?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the LongArray it not null or empty.

whatIfNot

An executable lambda function if the LongArray it null or empty.

inline fun FloatArray?.whatIfNotNullOrEmpty(whatIf: (FloatArray) -> Unit): FloatArray?

An expression for invoking whatIf when the FloatArray is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the FloatArray it not null or empty.

inline fun FloatArray?.whatIfNotNullOrEmpty(whatIf: (FloatArray) -> Unit, whatIfNot: () -> Unit): FloatArray?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the FloatArray it not null or empty.

whatIfNot

An executable lambda function if the FloatArray it null or empty.

inline fun DoubleArray?.whatIfNotNullOrEmpty(whatIf: (DoubleArray) -> Unit): DoubleArray?

An expression for invoking whatIf when the DoubleArray is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the DoubleArray it not null or empty.

inline fun DoubleArray?.whatIfNotNullOrEmpty(whatIf: (DoubleArray) -> Unit, whatIfNot: () -> Unit): DoubleArray?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the DoubleArray it not null or empty.

whatIfNot

An executable lambda function if the DoubleArray it null or empty.

inline fun BooleanArray?.whatIfNotNullOrEmpty(whatIf: (BooleanArray) -> Unit): BooleanArray?

An expression for invoking whatIf when the BooleanArray is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the BooleanArray it not null or empty.

inline fun BooleanArray?.whatIfNotNullOrEmpty(whatIf: (BooleanArray) -> Unit, whatIfNot: () -> Unit): BooleanArray?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the BooleanArray it not null or empty.

whatIfNot

An executable lambda function if the BooleanArray it null or empty.

inline fun CharArray?.whatIfNotNullOrEmpty(whatIf: (CharArray) -> Unit): CharArray?

An expression for invoking whatIf when the CharArray is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the CharArray it not null or empty.

inline fun CharArray?.whatIfNotNullOrEmpty(whatIf: (CharArray) -> Unit, whatIfNot: () -> Unit): CharArray?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the CharArray it not null or empty.

whatIfNot

An executable lambda function if the CharArray it null or empty.

inline fun <T> List<T>?.whatIfNotNullOrEmpty(whatIf: (List<T>) -> Unit): List<T>?

An expression for invoking whatIf when the List is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the List it not null or empty.

inline fun <T> List<T>?.whatIfNotNullOrEmpty(whatIf: (List<T>) -> Unit, whatIfNot: () -> Unit): List<T>?

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

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the List it not null or empty.

whatIfNot

An executable lambda function if the List it null or empty.

inline fun <T> Set<T>?.whatIfNotNullOrEmpty(whatIf: (Set<T>) -> Unit): Set<T>?

An expression for invoking whatIf when the Set is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the Set it not null or empty.

inline fun <T> Set<T>?.whatIfNotNullOrEmpty(whatIf: (Set<T>) -> Unit, whatIfNot: () -> Unit): Set<T>?

An expression for invoking whatIf when the Set is not null and not empty. If the array is null or empty, whatIfNot will be invoked instead of the whatIf.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the Set it not null or empty.

whatIfNot

An executable lambda function if the Set it null or empty.

inline fun <T, R> Map<T, R>?.whatIfNotNullOrEmpty(whatIf: (Map<T, R>) -> Unit): Map<T, R>?

An expression for invoking whatIf when the Map is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the Map it not null or empty.

inline fun <T, R> Map<T, R>?.whatIfNotNullOrEmpty(whatIf: (Map<T, R>) -> Unit, whatIfNot: () -> Unit): Map<T, R>?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the Map it not null or empty.

whatIfNot

An executable lambda function if the Map it null or empty.

inline fun String?.whatIfNotNullOrEmpty(whatIf: (String) -> Unit): String?

An expression for invoking whatIf when the String is not null and not empty.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the String it not null or empty.

inline fun String?.whatIfNotNullOrEmpty(whatIf: (String) -> Unit, whatIfNot: () -> Unit): String?

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.

Return

Returns the original target object.

Parameters

whatIf

An executable lambda function if the String it not null or empty.

whatIfNot

An executable lambda function if the String it null or empty.