arch-android

//Android/br.com.arch.toolkit.android.storage.delegate

Package-level declarations

Types

Name Summary
NonOptionalStorageDelegate [android]
data class NonOptionalStorageDelegate<T : Any> : StorageDelegate<T>
A property delegate for non-optional values in KeyValueStorage.
OptionalStorageDelegate [android]
data class OptionalStorageDelegate<T : Any> : StorageDelegate<T>
A property delegate for optional values in KeyValueStorage.
StorageDelegate [android]
sealed class StorageDelegate<T : Any>
Base class for storage delegates providing logging utilities.

Functions

Name Summary
keyValueStorage [android]
inline fun <T : Any> keyValueStorage(noinline name: () -> String): OptionalStorageDelegate<T>
Creates an OptionalStorageDelegate for the specified type and name provider.
[android]
inline fun <T : Any> keyValueStorage(name: String): OptionalStorageDelegate<T>
Creates an OptionalStorageDelegate for the specified type and name.
[android]
fun <T : Any> keyValueStorage(classToParse: KClass<out T>, name: () -> String): OptionalStorageDelegate<T>
Creates an OptionalStorageDelegate for the specified KClass and name provider.
[android]
fun <T : Any> keyValueStorage(classToParse: KClass<out T>, name: String): OptionalStorageDelegate<T>
Creates an OptionalStorageDelegate for the specified KClass and name.