T
- the type of formatter to providepublic class FormatThreadLocal<T extends Format> extends ThreadLocal<T>
Format
subclasses that are not thread
safe by themselves. Use ThreadLocal.get()
on an instance of this class to get a thread
local formatter instance.Constructor and Description |
---|
FormatThreadLocal(T prototype)
Create a new thread local formatter generator.
|
Modifier and Type | Method and Description |
---|---|
protected T |
initialValue() |
get, remove, set, withInitial
public FormatThreadLocal(T prototype)
prototype
- prototype to use when getting a formatterprotected T initialValue()
initialValue
in class ThreadLocal<T extends Format>
Copyright © 2020. All rights reserved.