K - the key type.V - the value type.public interface Associative<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
associateKeyWithValue(K key,
V value)
This method associates in this collection a new value with a key.
|
Accessible<Association<K,V>> |
getAssociations()
This method returns the list of associations between keys and values for this collection.
|
Accessible<K> |
getKeys()
This method returns the list of keys for the associations in this collection.
|
V |
getValueForKey(K key)
This method returns the value associated with the specified key.
|
Accessible<V> |
getValues()
This method returns the list of values for the associations in this collection.
|
V |
removeValueForKey(K key)
This method removes from this collection the value associated with a key.
|
Accessible<K> getKeys()
Accessible<V> getValues()
Accessible<Association<K,V>> getAssociations()
V getValueForKey(K key)
key - The key for the value to be retrieved.void associateKeyWithValue(K key, V value)
key - The key for the new value.value - The new value to be associated with the key.Copyright © 2015 Crater Dog Technologies(TM). All rights reserved.