Interface RegContainer
-
-
Method Summary
Modifier and Type Method Description abstract V
register(K key, V value)
Register abstract V
put(K key, V value)
Associates the specified value with the specified key in the map. abstract V
remove(K key)
Removes the specified key and its corresponding value from this map. abstract Unit
putAll(Map<out K, V> from)
Updates this map with key/value pairs from the specified map from. abstract Unit
clear()
Removes all elements from this map. abstract Set<K>
getKeys()
Returns a MutableSet of all keys in this map. abstract Collection<V>
getValues()
Returns a MutableCollection of all values in this map. abstract Set<Entry.Map<K, V>>
getEntries()
Returns a MutableSet of all key/value pairs in this map. -
-
Method Detail
-
put
abstract V put(K key, V value)
- Returns:
the previous value associated with the key, or
null
if the key was not present in the map.
-
remove
abstract V remove(K key)
Removes the specified key and its corresponding value from this map.
- Returns:
the previous value associated with the key, or
null
if the key was not present in the map.
-
putAll
abstract Unit putAll(Map<out K, V> from)
Updates this map with key/value pairs from the specified map from.
-
getKeys
abstract Set<K> getKeys()
Returns a MutableSet of all keys in this map.
-
getValues
abstract Collection<V> getValues()
Returns a MutableCollection of all values in this map. Note that this collection may contain duplicate values.
-
getEntries
abstract Set<Entry.Map<K, V>> getEntries()
Returns a MutableSet of all key/value pairs in this map.
-
-
-
-