KeyType - type of key being storedValueType - java of value being storedpublic interface Cache<KeyType,ValueType>
DozerCacheType type| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all of the mappings from this map.
|
boolean |
containsKey(KeyType key)
Returns true if this map contains a mapping for the
specified key.
|
ValueType |
get(KeyType key)
Returns the value to which the specified key is mapped,
or
null if this map contains no mapping for the key. |
int |
getMaxSize()
Returns the maximum number of entries which the cache can hold
|
String |
getName()
Returns the name of the overall cache store
|
long |
getSize()
Returns the number of key-value mappings in this map.
|
void |
put(KeyType key,
ValueType value)
Associates the specified value with the specified key in this map.
|
void clear()
void put(KeyType key, ValueType value)
key - key with which the specified value is to be associatedvalue - value to be associated with the specified keyValueType get(KeyType key)
null if this map contains no mapping for the key.key - key with which the specified value is to be associatedString getName()
long getSize()
int getMaxSize()
boolean containsKey(KeyType key)
key - The key whose presence in this map is to be testedCopyright © 2005–2021 dozer. All rights reserved.