View-common / view.utils.mapBased.keys.delegates.required / RequiredRWKey
RequiredRWKey
open class RequiredRWKey<T> :AbstractRWKey<T>
A delegate for mutable non-nullable properties that are based on maps.
The retrieval strategy is defined as follows:
MapInterface.Strategy.NON_NULL, MapInterface.Strategy.STRING_BASED, MapInterface.Strategy.CAST
Constructors
<init>
RequiredRWKey(fromString: (String) ->T)
A delegate for mutable non-nullable properties that are based on maps.
Properties
getterStrategy
open val getterStrategy: <ERROR CLASS>
Defines the value retrieval stategy of the property
Functions
getValue
open fun getValue(thisRef:HasKeys, property:KProperty<*>):T
mapInterface
open fun mapInterface(keys:MutableMap<String,Any?>):MapInterface<T>
Returns the MapInterface used to communicate with the map.
Inherited Functions
setValue
open fun setValue(thisRef:HasKeys, property:KProperty<*>, value:T):Unit
Inheritors
RequiredBoolRWKey
object RequiredBoolRWKey :RequiredRWKey<Boolean>
RequiredDoubleRWKey
object RequiredDoubleRWKey :RequiredRWKey<Double>
RequiredEnumRWKey
class RequiredEnumRWKey<E :Enum<E>> :RequiredRWKey<E>
RequiredIntRWKey
object RequiredIntRWKey :RequiredRWKey<Int>
RequiredStringRWKey
object RequiredStringRWKey :RequiredRWKey<String>