Interface FormatFactoryInterface

All Known Implementing Classes:
AbstractFormatFactory, BigDecimalFormatFactory, BigDecimalPatternFormatFactory, BigIntegerFormatFactory, BooleanFormatFactory, ByteFormatFactory, BytePatternFormatFactory, CharacterFormatFactory, DateFormatFactory, DoubleFormatFactory, DoublePatternFormatFactory, EnumFormatFactory, FloatFormatFactory, FloatPatternFormatFactory, IntegerFormatFactory, IntegerPatternFormatFactory, LocalDateFormatFactory, LocalDateTimeFormatFactory, LocalTimeFormatFactory, LongFormatFactory, LongPatternFormatFactory, ShortFormatFactory, ShortPatternFormatFactory, StringFormatFactory, ZonedDateTimeFormatFactory

public interface FormatFactoryInterface
  • Method Details

    • supportedClasses

      Collection<Class<?>> supportedClasses()
      Returns the list of supported classes. When the list doesn't contain elements the factory is supposed to support all kinds of classes. The factory must decide on other criteria whether it can build a Format.
      Returns:
      the list of supported classes
    • canBuild

      boolean canBuild(FormattingOptions formattingOptions)
      Can it build a Format. Answers the question about whether it can build a Format.
      Parameters:
      formattingOptions -
      Returns:
      can build
    • build

      Format<?> build(FormattingOptions formattingOptions)
      Builds the Format.
      Parameters:
      formattingOptions -
      Returns:
      the format