org.ujmp.core.collections
Class CachedMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.ujmp.core.collections.AbstractMap<K,V>
org.ujmp.core.collections.CachedMap<K,V>
- All Implemented Interfaces:
- Serializable, Map<K,V>, Wrapper<Map<K,V>>
public class CachedMap<K,V>
- extends AbstractMap<K,V>
- implements Wrapper<Map<K,V>>
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
CachedMap
public CachedMap(Map<K,V> source)
CachedMap
public CachedMap(Map<K,V> source,
Map<K,V> cache)
clear
public void clear()
- Specified by:
clear
in interface Map<K,V>
- Specified by:
clear
in class AbstractMap<K,V>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map<K,V>
- Overrides:
containsKey
in class AbstractMap<K,V>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map<K,V>
- Overrides:
containsValue
in class AbstractMap<K,V>
get
public V get(Object key)
- Specified by:
get
in interface Map<K,V>
- Specified by:
get
in class AbstractMap<K,V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map<K,V>
- Overrides:
isEmpty
in class AbstractMap<K,V>
keySet
public Set<K> keySet()
- Specified by:
keySet
in interface Map<K,V>
- Specified by:
keySet
in class AbstractMap<K,V>
put
public V put(K key,
V value)
- Specified by:
put
in interface Map<K,V>
- Specified by:
put
in class AbstractMap<K,V>
putAll
public void putAll(Map<? extends K,? extends V> m)
- Specified by:
putAll
in interface Map<K,V>
- Overrides:
putAll
in class AbstractMap<K,V>
remove
public V remove(Object key)
- Specified by:
remove
in interface Map<K,V>
- Specified by:
remove
in class AbstractMap<K,V>
size
public int size()
- Specified by:
size
in interface Map<K,V>
- Specified by:
size
in class AbstractMap<K,V>
getWrappedObject
public Map<K,V> getWrappedObject()
- Description copied from interface:
Wrapper
- Returns the object that is wrapped inside the wrapper
- Specified by:
getWrappedObject
in interface Wrapper<Map<K,V>>
- Returns:
- the inner object
setWrappedObject
public void setWrappedObject(Map<K,V> object)
- Description copied from interface:
Wrapper
- Sets the object that is wrapped inside the wrapper
- Specified by:
setWrappedObject
in interface Wrapper<Map<K,V>>
- Parameters:
object
- new objects to wrap
getCache
public Map<K,V> getCache()
Copyright © 2010. All Rights Reserved.