Class FormatSettingsProvider

  • public class FormatSettingsProvider
    extends Object
    Provides and caches format settings across types.
    • Constructor Detail

      • FormatSettingsProvider

        protected FormatSettingsProvider()
        Creates an 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
        clazz - the type to format
        defaultSettings - the default settings, used if no settings are found for the type
        the format settings