K
- map key typeV
- map value typepublic class LifecycleAwareMap<K,V> extends Object implements Map<K,V>, Copyable, Serializable
Mutability of the map will follow the semantics for the lifecycle element.
Constructor and Description |
---|
LifecycleAwareMap(LifecycleElement lifecycleElement)
Create a new map instance for use with a lifecycle element.
|
LifecycleAwareMap(LifecycleElement lifecycleElement,
Map<K,V> delegate)
Create a new list instance, based on another list.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Object |
clone()
Override
Object.clone() to assign the public modifier. |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
public LifecycleAwareMap(LifecycleElement lifecycleElement)
lifecycleElement
- The lifecycle element to use for mutability checks.public LifecycleAwareMap(LifecycleElement lifecycleElement, Map<K,V> delegate)
lifecycleElement
- The lifecycle element to use for mutability checks.delegate
- The list to wrap.public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public int hashCode()
public Object clone() throws CloneNotSupportedException
Copyable
Object.clone()
to assign the public modifier.clone
in interface Copyable
clone
in class Object
Object.clone()
CloneNotSupportedException
- If Cloneable
is not implemented. This should not
be possible when using this interface.Object.clone()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.