org.apache.commons.ognl.internal
Class HashMapCache<K,V>
java.lang.Object
org.apache.commons.ognl.internal.HashMapCache<K,V>
- All Implemented Interfaces:
- Cache<K,V>
- Direct Known Subclasses:
- HashMapClassCache, ReentrantReadWriteLockClassCache
public class HashMapCache<K,V>
- extends Object
- implements Cache<K,V>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HashMapCache
public HashMapCache(CacheEntryFactory<K,V> cacheEntryFactory)
clear
public void clear()
- Specified by:
clear
in interface Cache<K,V>
getSize
public int getSize()
- Specified by:
getSize
in interface Cache<K,V>
get
public V get(K key)
throws CacheException
- Specified by:
get
in interface Cache<K,V>
- Throws:
CacheException
shouldCreate
protected boolean shouldCreate(CacheEntryFactory<K,V> cacheEntryFactory,
V v)
throws CacheException
- Throws:
CacheException
put
public V put(K key,
V value)
- Specified by:
put
in interface Cache<K,V>
contains
public boolean contains(K key)
Copyright © 1997-2013 The Apache Software Foundation. All Rights Reserved.