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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Format<?>
build(FormattingOptions formattingOptions)
Builds theFormat
.boolean
canBuild(FormattingOptions formattingOptions)
Can it build aFormat
.Collection<Class<?>>
supportedClasses()
Returns the list of supported classes.
-
-
-
Method Detail
-
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
boolean canBuild(FormattingOptions formattingOptions)
- Parameters:
formattingOptions
-- Returns:
- can build
-
build
Format<?> build(FormattingOptions formattingOptions)
Builds theFormat
.- Parameters:
formattingOptions
-- Returns:
- the format
-
-