com.atlassian.user.util
Class GenericCacheWrapper<K,V>

java.lang.Object
  extended by com.atlassian.user.util.GenericCacheWrapper<K,V>

public class GenericCacheWrapper<K,V>
extends Object

Cheat to allow us to treat caches as if they have been genericised. As of now, atlassian-cache hasn't been made generic for backwards compatibility reasons.


Constructor Summary
GenericCacheWrapper(com.atlassian.cache.Cache cache)
           
 
Method Summary
 V get(K key)
           
 Collection<K> getKeys()
           
 String getName()
           
 void put(K key, V value)
           
 void remove(K key)
           
 void removeAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericCacheWrapper

public GenericCacheWrapper(com.atlassian.cache.Cache cache)
Method Detail

getName

public String getName()

getKeys

public Collection<K> getKeys()

get

public V get(K key)

put

public void put(K key,
                V value)

remove

public void remove(K key)

removeAll

public void removeAll()


Copyright © 2005-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.