fr.opensagres.xdocreport.core.cache
Class MapCacheStorage<K,V>

java.lang.Object
  extended by fr.opensagres.xdocreport.core.cache.MapCacheStorage<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
ICacheStorage<K,V>

public class MapCacheStorage<K,V>
extends Object
implements ICacheStorage<K,V>

ICacheStorage implementation with Map;


Constructor Summary
MapCacheStorage()
           
 
Method Summary
 void clear()
           
 boolean containsKey(K key)
           
 V get(K key)
           
 void put(K key, V value)
           
 void remove(K key)
           
 Collection<V> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCacheStorage

public MapCacheStorage()
Method Detail

get

public V get(K key)
Specified by:
get in interface ICacheStorage<K,V>

put

public void put(K key,
                V value)
Specified by:
put in interface ICacheStorage<K,V>

remove

public void remove(K key)
Specified by:
remove in interface ICacheStorage<K,V>

clear

public void clear()
Specified by:
clear in interface ICacheStorage<K,V>

containsKey

public boolean containsKey(K key)
Specified by:
containsKey in interface ICacheStorage<K,V>

values

public Collection<V> values()
Specified by:
values in interface ICacheStorage<K,V>


Copyright © 2013. All rights reserved.