|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.util.CmsConstantMap<K,V>
K
- the type of keys maintained by this mapV
- the type of mapped valuespublic class CmsConstantMap<K,V>
Returns the constant Object the map was initialized with for all get(Object)
calls,
regardless of what the actual key is.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
static Map<String,Boolean> |
CONSTANT_BOOLEAN_FALSE_MAP
Constant Map that always returns Boolean.FALSE . |
static Map<String,Boolean> |
CONSTANT_BOOLEAN_TRUE_MAP
Constant Map that always returns Boolean.TRUE . |
static Map<String,List<CmsJspContentAccessValueWrapper>> |
CONSTANT_EMPTY_LIST_MAP
Constant Map that always returns an empty list. |
Constructor Summary | |
---|---|
CmsConstantMap(V constant)
Creates a new constant Map. |
Method Summary | |
---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<K,V>> |
entrySet()
|
boolean |
equals(Object obj)
|
V |
get(Object key)
|
int |
hashCode()
|
boolean |
isEmpty()
|
Set<K> |
keySet()
|
V |
put(Object arg0,
Object arg1)
|
void |
putAll(Map<? extends K,? extends V> arg0)
|
V |
remove(Object key)
|
int |
size()
|
Collection<V> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Map<String,Boolean> CONSTANT_BOOLEAN_FALSE_MAP
Boolean.FALSE
.
public static final Map<String,Boolean> CONSTANT_BOOLEAN_TRUE_MAP
Boolean.TRUE
.
public static final Map<String,List<CmsJspContentAccessValueWrapper>> CONSTANT_EMPTY_LIST_MAP
Constructor Detail |
---|
public CmsConstantMap(V constant)
constant
- the constant to return for all get(Object)
calls.Method Detail |
---|
public void clear()
clear
in interface Map<K,V>
Map.clear()
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
Map.containsKey(java.lang.Object)
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
Map.containsValue(java.lang.Object)
public Set<Map.Entry<K,V>> entrySet()
entrySet
in interface Map<K,V>
Map.entrySet()
public boolean equals(Object obj)
equals
in interface Map<K,V>
equals
in class Object
Object.equals(java.lang.Object)
public V get(Object key)
get
in interface Map<K,V>
Map.get(java.lang.Object)
public int hashCode()
hashCode
in interface Map<K,V>
hashCode
in class Object
Object.hashCode()
public boolean isEmpty()
isEmpty
in interface Map<K,V>
Map.isEmpty()
public Set<K> keySet()
keySet
in interface Map<K,V>
Map.keySet()
public V put(Object arg0, Object arg1)
put
in interface Map<K,V>
Map.put(java.lang.Object, java.lang.Object)
public void putAll(Map<? extends K,? extends V> arg0)
putAll
in interface Map<K,V>
Map.putAll(java.util.Map)
public V remove(Object key)
remove
in interface Map<K,V>
Map.remove(java.lang.Object)
public int size()
size
in interface Map<K,V>
Map.size()
public Collection<V> values()
values
in interface Map<K,V>
Map.values()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |