Class PnLValuesPostProcessor.ThreadLocalDecimalFormat
- java.lang.Object
-
- java.lang.ThreadLocal<DecimalFormat>
-
- com.activeviam.risk.core.postprocessor.impl.PnLValuesPostProcessor.ThreadLocalDecimalFormat
-
- Enclosing class:
- PnLValuesPostProcessor
protected static final class PnLValuesPostProcessor.ThreadLocalDecimalFormat extends ThreadLocal<DecimalFormat>
Thread local wrapped number format.
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalDecimalFormat(String pattern)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecimalFormat
initialValue()
-
Methods inherited from class java.lang.ThreadLocal
get, remove, set, withInitial
-
-
-
-
Field Detail
-
pattern
protected String pattern
-
-
Constructor Detail
-
ThreadLocalDecimalFormat
public ThreadLocalDecimalFormat(String pattern)
Constructor.- Parameters:
pattern
- the pattern to use when creating new values.
-
-
Method Detail
-
initialValue
public DecimalFormat initialValue()
- Overrides:
initialValue
in classThreadLocal<DecimalFormat>
-
-