Package org.kuali.rice.krad.uif.util
Class LifecycleAwareMap<K,V>
java.lang.Object
org.kuali.rice.krad.uif.util.LifecycleAwareMap<K,V>
- Type Parameters:
K- map key typeV- map value type
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,,V> Copyable
Map implementation for internal use by a lifecycle element.
Mutability of the map will follow the semantics for the lifecycle element.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionLifecycleAwareMap(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()OverrideObject.clone()to assign the public modifier.booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleaninthashCode()booleanisEmpty()keySet()voidintsize()values()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
LifecycleAwareMap
Create a new map instance for use with a lifecycle element.- Parameters:
lifecycleElement- The lifecycle element to use for mutability checks.
-
LifecycleAwareMap
Create a new list instance, based on another list.- Parameters:
lifecycleElement- The lifecycle element to use for mutability checks.delegate- The list to wrap.
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
clone
Description copied from interface:CopyableOverrideObject.clone()to assign the public modifier.- Specified by:
clonein interfaceCopyable- Overrides:
clonein classObject- Returns:
Object.clone()- Throws:
CloneNotSupportedException- IfCloneableis not implemented. This should not be possible when using this interface.- See Also:
-