Source set: Android
public class MutableActionParameters internal constructor(internal val map: MutableMap<Key<out Any>, Any> = mutableMapOf()) :
ActionParameters()
Mutable version of ActionParameters. Allows for editing the underlying data, and adding or removing key-value pairs.
Functions
contains
Source set: Android
override operator fun <T : Any> contains(key: Key<T>): Boolean
get
Source set: Android
override operator fun <T : Any> get(key: Key<T>): T?
getOrDefault
Source set: Android
override fun <T : Any> getOrDefault(key: Key<T>, defaultValue: T): T
asMap
Source set: Android
override fun asMap(): Map<Key<out Any>, Any>
set
Source set: Android
public operator fun <T : Any> set(key: Key<T>, value: T?): T?
Sets a key value pair in MutableParameters. If the value is null, the key is removed from the parameters.
Parameters
| key | the parameter to set |
| value | the value to assign to this parameter |
Return
the previous value associated with the key, or null if the key was not present
remove
Source set: Android
@Suppress("UNCHECKED_CAST") public fun <T : Any> remove(key: Key<T>): T?
Removes an item from this MutableParameters.
Parameters
| key | the parameter to remove |
Return
the original value of the parameter
clear
Source set: Android
public fun clear(): Unit
Removes all parameters from this MutableParameters.
equals
Source set: Android
override fun equals(other: Any?): Boolean
hashCode
Source set: Android
override fun hashCode(): Int
toString
Source set: Android
override fun toString(): String
isEmpty
Source set: Android
override fun isEmpty(): Boolean