K - map key.V - map value.public class MapStorageWrapper<K,V> extends Object implements StorageWrapper<K,V>
| Constructor and Description |
|---|
MapStorageWrapper(Map<K,V> aMap)
Creates a new map storage wrapper with a given underlying wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
Map<K,V> |
fillMap(Map<K,V> toFill)
Fills the parameter map with contents of this map and returns it.
|
V |
get(Object key) |
boolean |
isEmpty() |
Collection<K> |
keys()
Returns the collection with all keys.
|
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> aMap) |
void |
putAll(StorageWrapper<? extends K,? extends V> anotherWrapper)
Puts all data from another wrapper into this wrapper.
|
V |
remove(Object key) |
int |
size() |
Map<K,V> |
toMap()
Creates a new map and fill it with the content of this map.
|
String |
toString() |
Collection<V> |
values() |
public void putAll(StorageWrapper<? extends K,? extends V> anotherWrapper)
StorageWrapperputAll in interface StorageWrapper<K,V>public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public Collection<K> keys()
StorageWrapperkeys in interface StorageWrapper<K,V>public Map<K,V> toMap()
StorageWrappertoMap in interface StorageWrapper<K,V>public Map<K,V> fillMap(Map<K,V> toFill)
StorageWrapperfillMap in interface StorageWrapper<K,V>Copyright © 2010-2017 anotheria.net. All Rights Reserved.