Class FormatSettingsProvider


  • public class FormatSettingsProvider
    extends java.lang.Object
    Provides and caches format settings across types.
    • 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​(java.lang.Class<? extends T> clazz, FormatSettings<java.lang.Object> defaultSettings)
      Obtains the format settings for a given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FormatSettingsProvider

        protected FormatSettingsProvider()
        Creates an instance.
    • Method Detail

      • settings

        public <T> FormatSettings<T> settings​(java.lang.Class<? extends T> clazz,
                                              FormatSettings<java.lang.Object> defaultSettings)
        Obtains the format settings for a given type.
        Type Parameters:
        T - the type of the value
        Parameters:
        clazz - the type to format
        defaultSettings - the default settings, used if no settings are found for the type
        Returns:
        the format settings