net.java.dev.moskito.util.storage
Class MapStorageWrapper<K,V>

java.lang.Object
  extended by 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>


Field Summary
private  Map<K,V> map
           
 
Constructor Summary
MapStorageWrapper(Map<K,V> aMap)
           
 
Method Summary
 void clear()
           
 boolean containsKey(K key)
           
 boolean containsValue(V value)
           
 Map<K,V> fillMap(Map<K,V> toFill)
           
 V get(K key)
           
private  Map<K,V> getMap()
           
 boolean isEmpty()
           
 Collection<K> 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)
           
 V remove(K key)
           
 int size()
           
 Map<K,V> toMap()
           
 String toString()
           
 Collection<V> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

map

private Map<K,V> map
Constructor Detail

MapStorageWrapper

public MapStorageWrapper(Map<K,V> aMap)
Method Detail

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