ThreadLocalHashMap
fm.common.ThreadLocalHashMap
Wraps a Scala mutable.HashMap inside of a ThreadLocal and exposes some simple operations.
The initial use case of this is for caching NumberFormat instances by Locale. This can be accomplished by overriding the initialValue method and just calling the apply() method with the Locale.
Attributes
- K
The HashMap Key
- V
The HashMap Value
- Graph
- Supertypes
- class Objecttrait Matchableclass Any