Package-level declarations

Functions

Link copied to clipboard

Returns an empty String.

Link copied to clipboard
Link copied to clipboard

Returns true only when this nullable value is explicitly true.

Link copied to clipboard
fun String?.orEmpty(defaultValue: String = String.empty()): String

Returns this value, or defaultValue when it is null.

Link copied to clipboard
fun Boolean?.orFalse(defaultValue: Boolean = false): Boolean

Returns this value, or defaultValue when it is null.

Link copied to clipboard
fun Double?.orZero(defaultValue: Double = Double.zero()): Double
fun Float?.orZero(defaultValue: Float = Float.zero()): Float
fun Int?.orZero(defaultValue: Int = Int.zero()): Int
fun Long?.orZero(defaultValue: Long = Long.zero()): Long

Returns this value, or defaultValue when it is null.

Link copied to clipboard

Returns the additive identity for Double.

Returns the additive identity for Float.

Returns the additive identity for Int.

Returns the additive identity for Long.