API reference
API reference
Select your platform
No SDKs available
No versions available

ExperimentalMapAttribute Class

Implements AbstractAttribute
Modifiers: final
An attribute that stores a map of key-value pairs.
XML Usage Example:
<component name="Properties">
  <ExperimentalMapAttribute name="settings" keyType="String" valueType="Int" />
</component>

Signature

class ExperimentalMapAttribute<KeyT, ValT>(keyString: String, key: Int, component: ComponentBase) : AbstractAttribute

Constructors

ExperimentalMapAttribute ( keyString , key , component )
Signature
constructor(keyString: String, key: Int, component: ComponentBase)
Parameters
keyString: String
  The string key for this attribute
key: Int
  The integer key for this attribute
component: ComponentBase
  The component this attribute belongs to

Properties

map : mutableMapOf<KeyT, ValT>()
[Get][Set]
Signature
var map: mutableMapOf<KeyT, ValT>()
mapDelegate : MapDelegate
[Get][Set]
Signature
var mapDelegate: MapDelegate<KeyT, ValT>

Functions

get ()
Signature
open override fun get(): Any
Returns
Any
getValue ( thisRef , property )
Signature
operator fun getValue(thisRef: Any?, property: KProperty<*>): MapDelegate<KeyT, ValT>
Parameters
thisRef: Any?
property: KProperty
Returns
MapDelegate
set ( value )
Signature
open override fun set(value: Any)
Parameters
value: Any
setValue ( thisRef , property , value )
Signature
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: MapDelegate<KeyT, ValT>)
Parameters
thisRef: Any?
property: KProperty
value: MapDelegate
Did you find this page helpful?