Package org.apache.myfaces.util.lang
Class AbstractThreadSafeAttributeMap<V>
- java.lang.Object
-
- java.util.AbstractMap<String,V>
-
- org.apache.myfaces.util.lang.AbstractThreadSafeAttributeMap<V>
-
- Direct Known Subclasses:
ApplicationMap
,SessionMap
public abstract class AbstractThreadSafeAttributeMap<V> extends AbstractMap<String,V>
Helper Map implementation for use with different Attribute Maps.- Version:
- $Revision$ $Date$
- Author:
- Anton Koinov (latest modification by $Author$)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description AbstractThreadSafeAttributeMap()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object findValue)
Set<Map.Entry<String,V>>
entrySet()
V
get(Object key)
protected abstract V
getAttribute(String key)
protected abstract Enumeration<String>
getAttributeNames()
boolean
isEmpty()
Set<String>
keySet()
V
put(String key, V value)
void
putAll(Map<? extends String,? extends V> t)
V
remove(Object key)
protected abstract void
removeAttribute(String key)
protected abstract void
setAttribute(String key, V value)
int
size()
Collection<V>
values()
-
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
clear
public void clear()
-
containsKey
public final boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,V>
- Overrides:
containsKey
in classAbstractMap<String,V>
-
containsValue
public boolean containsValue(Object findValue)
- Specified by:
containsValue
in interfaceMap<String,V>
- Overrides:
containsValue
in classAbstractMap<String,V>
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
values
public Collection<V> values()
-
removeAttribute
protected abstract void removeAttribute(String key)
-
getAttributeNames
protected abstract Enumeration<String> getAttributeNames()
-
-