net.java.dev.moskito.util.storage
Class MapStorageWrapper<K,V>
java.lang.Object
net.java.dev.moskito.util.storage.MapStorageWrapper<K,V>
- All Implemented Interfaces:
- StorageWrapper<K,V>
public class MapStorageWrapper<K,V>
- extends Object
- implements StorageWrapper<K,V>
map
private Map<K,V> map
MapStorageWrapper
public MapStorageWrapper(Map<K,V> aMap)
putAll
public void putAll(Map<? extends K,? extends V> aMap)
- Specified by:
putAll in interface StorageWrapper<K,V>
putAll
public void putAll(StorageWrapper<? extends K,? extends V> anotherWrapper)
- Specified by:
putAll in interface StorageWrapper<K,V>
clear
public void clear()
- Specified by:
clear in interface StorageWrapper<K,V>
containsKey
public boolean containsKey(K key)
- Specified by:
containsKey in interface StorageWrapper<K,V>
containsValue
public boolean containsValue(V value)
- Specified by:
containsValue in interface StorageWrapper<K,V>
get
public V get(K key)
- Specified by:
get in interface StorageWrapper<K,V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface StorageWrapper<K,V>
keys
public Collection<K> keys()
- Specified by:
keys in interface StorageWrapper<K,V>
keySet
public Set<K> keySet()
- Specified by:
keySet in interface StorageWrapper<K,V>
put
public V put(K key,
V value)
- Specified by:
put in interface StorageWrapper<K,V>
remove
public V remove(K key)
- Specified by:
remove in interface StorageWrapper<K,V>
size
public int size()
- Specified by:
size in interface StorageWrapper<K,V>
values
public Collection<V> values()
- Specified by:
values in interface StorageWrapper<K,V>
getMap
private Map<K,V> getMap()
toString
public String toString()
- Overrides:
toString in class Object
toMap
public Map<K,V> toMap()
- Specified by:
toMap in interface StorageWrapper<K,V>
fillMap
public Map<K,V> fillMap(Map<K,V> toFill)
- Specified by:
fillMap in interface StorageWrapper<K,V>
Copyright © 2006-2007 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework