Package me.datafox.dfxengine.text.api
Interface NumberFormatter
- All Superinterfaces:
Comparable<Handled>,Handled
- All Known Implementing Classes:
EvenLengthNumberFormatter,SimpleNumberFormatter,SplittingNumberFormatter
A formatter that formats a
BigDecimal number to a String. Should generally use the configured
NumberSuffixFormatter for the operation.-
Method Summary
Modifier and TypeMethodDescriptionformat(BigDecimal number, TextFactory factory, TextConfiguration configuration)
-
Method Details
-
format
- Parameters:
number- number to be formatterfactory-TextFactoryfor formattingconfiguration-TextConfigurationfor formatting- Returns:
Stringrepresentation of the number- Throws:
TextConfigurationException- if theTextConfigurationis not valid for this formatter
-