alakazam.kotlin.core.PrefPair.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-core Show documentation
Show all versions of kotlin-core Show documentation
A set of useful functions and extensions for Kotlin development.
package alakazam.kotlin.core
/**
* Small utility class to carry both a preference key and its default value in the same container.
* This is used alongside the extension functions below to abstract away (sort-of) the fetching of
* preference values from the local data store.
*/
public data class PrefPair(
val key: String,
val default: T,
)