|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the type of the map keysV
- the type of the map valuespublic interface ValueMap<K,V>
An interface describing an object mapping values to keys, null values are allowed.
Nested Class Summary | |
---|---|
static interface |
ValueMap.ToString<K>
Describes an object responsible for providing String representations of ValueMap instances |
Method Summary | |
---|---|
void |
clear()
Removes all values from this map. |
boolean |
containsValue(K key)
Returns true if this ValueMap contains a value for the given key, that value can be null. |
V |
copyValue(V value)
Returns a deep copy of the given value, immutable values are simply returned. |
Collection<K> |
getValueKeys()
|
Collection<V> |
getValues()
Retrieves the values associated with this value provider. |
boolean |
isValueNull(K key)
Returns true if a null value is mapped to the given key. |
V |
removeValue(K key)
Removes the given key and value from this value map along with the original value if any. |
V |
setValue(K key,
V value)
Maps the given value to the given key, returning the old value if any. |
int |
size()
|
Methods inherited from interface org.jminor.common.model.valuemap.ValueProvider |
---|
getValue |
Methods inherited from interface org.jminor.common.model.valuemap.ValueAsStringProvider |
---|
getValueAsString |
Method Detail |
---|
V setValue(K key, V value)
key
- the keyvalue
- the value
V removeValue(K key)
key
- the key to remove
void clear()
boolean isValueNull(K key)
key
- the key
boolean containsValue(K key)
key
- the key
Collection<V> getValues()
ValueCollectionProvider
getValues
in interface ValueCollectionProvider<V>
Collection<K> getValueKeys()
int size()
V copyValue(V value)
value
- the value to copy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |