Class ManagedConcurrentValueMap<K,V>
java.lang.Object
org.codehaus.groovy.util.ManagedConcurrentValueMap<K,V>
- Type Parameters:
K- the key typeV- the value type
This is a basic implementation of a map able to forget its values. This
map uses internally a ConcurrentHashMap, thus should be save for concurrency.
hashcode and equals are used to find the entries and should thus be implemented
properly for the keys. This map does not support null keys.
- Author:
- Jochen "blackdrag" Theodorou
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ManagedConcurrentValueMap
-
-
Method Details
-
setBundle
Sets a new bundle used for reference creation. Be warned that older entries will not be changed by this- Parameters:
bundle- - the ReferenceBundle
-
get
-
put
-