core-ktx / androidx.util / android.util.SparseLongArray / getOrDefault

getOrDefault

inline fun SparseLongArray.getOrDefault(key: Int, defaultValue: Long): Long

Return the value corresponding to key, or defaultValue when not present.