Package-level declarations

Functions

Link copied to clipboard
inline fun <T> Array<T>?.toNonNull(): Array<T>

Get a non-null array itself for the nullable array.

Get a non-null boolean value itself for the nullable boolean value.

Get a non-null double value itself for the nullable double value.

Get a non-null float value itself for the nullable float value.

fun Int?.toNonNull(): Int

Get a non-null integer value itself for the nullable integer value.

Get a non-null long value itself for the nullable long value.

Get a non-null string value itself for the nullable string value.

inline fun <E> List<E>?.toNonNull(): List<E>

Get a non-null list itself for the nullable list.

inline fun <K, V> Map<K, V>?.toNonNull(): Map<K, V>

Get a non-null map itself for the nullable map.

inline fun <E> Set<E>?.toNonNull(): Set<E>

Get a non-null set itself for the nullable set.

inline fun <T> T?.toNonNull(default: T): T

Get a non-null value itself for the nullable value. If the value itself is null, it returns the specified default value. a default value if the nullable value is null