org.dozer.cache
Class DozerCache<KeyType,ValueType>
java.lang.Object
org.dozer.cache.DozerCache<KeyType,ValueType>
- All Implemented Interfaces:
- Cache<KeyType,ValueType>
public class DozerCache<KeyType,ValueType>
- extends Object
- implements Cache<KeyType,ValueType>
Map backed Cache implementation.
- Author:
- tierney.matt, dmitry.buzdin
DozerCache
public DozerCache(String name,
int maximumSize)
clear
public void clear()
- Specified by:
clear in interface Cache<KeyType,ValueType>
put
public void put(KeyType key,
ValueType value)
- Specified by:
put in interface Cache<KeyType,ValueType>
get
public ValueType get(KeyType key)
- Specified by:
get in interface Cache<KeyType,ValueType>
addEntries
public void addEntries(Collection<CacheEntry<KeyType,ValueType>> entries)
getEntries
public Collection<CacheEntry<KeyType,ValueType>> getEntries()
getName
public String getName()
- Specified by:
getName in interface Cache<KeyType,ValueType>
getSize
public long getSize()
- Specified by:
getSize in interface Cache<KeyType,ValueType>
getMaxSize
public long getMaxSize()
- Specified by:
getMaxSize in interface Cache<KeyType,ValueType>
containsKey
public boolean containsKey(KeyType key)
- Specified by:
containsKey in interface Cache<KeyType,ValueType>
keySet
public Set<KeyType> keySet()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2011 dozer. All Rights Reserved.