Class FormatSettingsProvider
- java.lang.Object
-
- com.opengamma.strata.report.framework.format.FormatSettingsProvider
-
public class FormatSettingsProvider extends Object
Provides and caches format settings across types.
-
-
Field Summary
Fields Modifier and Type Field Description static FormatSettingsProvider
INSTANCE
The default instance.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FormatSettingsProvider()
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> FormatSettings<T>
settings(Class<? extends T> clazz, FormatSettings<Object> defaultSettings)
Obtains the format settings for a given type.
-
-
-
Field Detail
-
INSTANCE
public static final FormatSettingsProvider INSTANCE
The default instance.
-
-
Method Detail
-
settings
public <T> FormatSettings<T> settings(Class<? extends T> clazz, FormatSettings<Object> defaultSettings)
Obtains the format settings for a given type.- Type Parameters:
T
- the type of the value- Parameters:
clazz
- the type to formatdefaultSettings
- the default settings, used if no settings are found for the type- Returns:
- the format settings
-
-