java.lang.Object | |||
↳ | android.support.v4.util.SimpleArrayMap<K, V> | ||
↳ | android.support.v4.util.ArrayMap<K, V> | ||
↳ | android.databinding.ObservableArrayMap<K, V> |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a callback to listen for changes to the ObservableMap.
| |||||||||||
Make the array map empty.
| |||||||||||
Add a new value to the array map.
| |||||||||||
Remove all keys in the array map that exist in the given collection.
| |||||||||||
Remove the key/value mapping at the given index.
| |||||||||||
Removes a previously added callback.
| |||||||||||
Remove all keys in the array map that do not exist in the given collection.
| |||||||||||
Set the value at a given index in the array.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.support.v4.util.ArrayMap
| |||||||||||
From class
android.support.v4.util.SimpleArrayMap
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.util.Map
| |||||||||||
From interface
android.databinding.ObservableMap
|
Adds a callback to listen for changes to the ObservableMap.
listener | The callback to start listening for events. |
---|
Make the array map empty. All storage is released.
Add a new value to the array map.
k | The key under which to store the value. Must not be null. If this key already exists in the array, its value will be replaced. |
---|---|
v | The value to store for the given key. |
Remove all keys in the array map that exist in the given collection.
collection | The collection whose contents are to be used to remove keys. |
---|
Remove the key/value mapping at the given index.
index | The desired index, must be between 0 and size() -1. |
---|
Removes a previously added callback.
listener | The callback that no longer needs to be notified of map changes. |
---|
Remove all keys in the array map that do not exist in the given collection.
collection | The collection whose contents are to be used to determine which keys to keep. |
---|
Set the value at a given index in the array.
index | The desired index, must be between 0 and size() -1. |
---|---|
value | The new value to store at this index. |