StorageKey

abstract class StorageKey<T>(val name: String, val defaultValue: T? = null)(source)

A key which can be used to read and write type-safe values to / from a Storage object.

Inheritors

Constructors

Link copied to clipboard
constructor(name: String, defaultValue: T? = null)

Properties

Link copied to clipboard
val defaultValue: T? = null
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun convertFromString(value: String): T?
Link copied to clipboard
abstract fun convertToString(value: T): String