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 Summary
Modifier and TypeMethodDescriptionFormat<?>
build
(FormattingOptions formattingOptions) Builds theFormat
.boolean
canBuild
(FormattingOptions formattingOptions) Can it build aFormat
.Collection<Class<?>>
Returns the list of supported classes.
-
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 aFormat
.- Returns:
- the list of supported classes
-
canBuild
- Parameters:
formattingOptions
-- Returns:
- can build
-
build
Builds theFormat
.- Parameters:
formattingOptions
-- Returns:
- the format
-