Class ValueFormatters
- java.lang.Object
-
- com.opengamma.strata.report.framework.format.ValueFormatters
-
public final class ValueFormatters extends Object
Provides standard formatters.Each formatter implements
ValueFormatter
.
-
-
Field Summary
Fields Modifier and Type Field Description static ValueFormatter<AdjustableDate>
ADJUSTABLE_DATE
The formatter to be used forAdjustableDate
, printing the unadjusted date.static ValueFormatter<CurrencyAmount>
CURRENCY_AMOUNT
The formatter to be used forCurrencyAmount
.static ValueFormatter<CurrencyParameterSensitivity>
CURRENCY_PARAMETER_SENSITIVITY
The formatter to be used forCurrencyParameterSensitivity
.static ValueFormatter<Double>
DOUBLE
The formatter to be used fordouble
.static ValueFormatter<double[]>
DOUBLE_ARRAY
The formatter to be used fordouble[]
.static ValueFormatter<Object>
TO_STRING
The default formatter that returns the value of thetoString()
method.static ValueFormatter<Object>
UNSUPPORTED
The formatter to be used when no specific formatter exists for the object.
-
-
-
Field Detail
-
TO_STRING
public static final ValueFormatter<Object> TO_STRING
The default formatter that returns the value of thetoString()
method.
-
ADJUSTABLE_DATE
public static final ValueFormatter<AdjustableDate> ADJUSTABLE_DATE
The formatter to be used forAdjustableDate
, printing the unadjusted date.
-
CURRENCY_AMOUNT
public static final ValueFormatter<CurrencyAmount> CURRENCY_AMOUNT
The formatter to be used forCurrencyAmount
.
-
CURRENCY_PARAMETER_SENSITIVITY
public static final ValueFormatter<CurrencyParameterSensitivity> CURRENCY_PARAMETER_SENSITIVITY
The formatter to be used forCurrencyParameterSensitivity
.
-
DOUBLE_ARRAY
public static final ValueFormatter<double[]> DOUBLE_ARRAY
The formatter to be used fordouble[]
.
-
DOUBLE
public static final ValueFormatter<Double> DOUBLE
The formatter to be used fordouble
.
-
UNSUPPORTED
public static final ValueFormatter<Object> UNSUPPORTED
The formatter to be used when no specific formatter exists for the object.
-
-