Package com. skydoves. whatif
Functions
addAllWhatIfNotNull
Link copied to clipboard
inline fun <T : MutableCollection<E>, E> T.addAllWhatIfNotNull(element: Collection<E>?, whatIf: (T) -> Unit): T
Content copied to clipboard
addWhatIfNotNull
Link copied to clipboard
inline fun <T : MutableCollection<E>, E> T.addWhatIfNotNull(element: E?, whatIf: (T) -> Unit): T
Content copied to clipboard
removeAllWhatIfNotNull
Link copied to clipboard
inline fun <T : MutableCollection<E>, E> T.removeAllWhatIfNotNull(element: Collection<E>?, whatIf: (T) -> Unit): T
Content copied to clipboard
removeWhatIfNotNull
Link copied to clipboard
inline fun <T : MutableCollection<E>, E> T.removeWhatIfNotNull(element: E?, whatIf: (T) -> Unit): T
Content copied to clipboard
whatIfAnd
Link copied to clipboard
whatIfElse
Link copied to clipboard
whatIfLet
Link copied to clipboard
whatIfMap
Link copied to clipboard
whatIfNotNull
Link copied to clipboard
whatIfNotNullAs
Link copied to clipboard
An expression for invoking whatIf when the target object is not null.
whatIfNotNullOrEmpty
Link copied to clipboard
inline fun BooleanArray?.whatIfNotNullOrEmpty(whatIf: (BooleanArray) -> Unit): BooleanArray?
Content copied to clipboard
inline fun ByteArray?.whatIfNotNullOrEmpty(whatIf: (ByteArray) -> Unit): ByteArray?
Content copied to clipboard
inline fun CharArray?.whatIfNotNullOrEmpty(whatIf: (CharArray) -> Unit): CharArray?
Content copied to clipboard
inline fun DoubleArray?.whatIfNotNullOrEmpty(whatIf: (DoubleArray) -> Unit): DoubleArray?
Content copied to clipboard
inline fun FloatArray?.whatIfNotNullOrEmpty(whatIf: (FloatArray) -> Unit): FloatArray?
Content copied to clipboard
inline fun IntArray?.whatIfNotNullOrEmpty(whatIf: (IntArray) -> Unit): IntArray?
Content copied to clipboard
inline fun LongArray?.whatIfNotNullOrEmpty(whatIf: (LongArray) -> Unit): LongArray?
Content copied to clipboard
inline fun ShortArray?.whatIfNotNullOrEmpty(whatIf: (ShortArray) -> Unit): ShortArray?
Content copied to clipboard
inline fun String?.whatIfNotNullOrEmpty(whatIf: (String) -> Unit): String?
Content copied to clipboard
inline fun BooleanArray?.whatIfNotNullOrEmpty(whatIf: (BooleanArray) -> Unit, whatIfNot: () -> Unit): BooleanArray?
Content copied to clipboard
inline fun DoubleArray?.whatIfNotNullOrEmpty(whatIf: (DoubleArray) -> Unit, whatIfNot: () -> Unit): DoubleArray?
Content copied to clipboard
inline fun FloatArray?.whatIfNotNullOrEmpty(whatIf: (FloatArray) -> Unit, whatIfNot: () -> Unit): FloatArray?
Content copied to clipboard
inline fun ShortArray?.whatIfNotNullOrEmpty(whatIf: (ShortArray) -> Unit, whatIfNot: () -> Unit): ShortArray?
Content copied to clipboard
whatIfOr
Link copied to clipboard