abstract class AbstractNumberFormatter : Formatter<Number>
Abstract formatter for Numbers, providing a #getNumberFormat(java.util.Locale) template method.
Author
Juergen Hoeller
Author
Keith Donald
Since
3.0
AbstractNumberFormatter()
Abstract formatter for Numbers, providing a |
open fun parse(text: String, locale: Locale): Number |
|
open fun print(number: Number, locale: Locale): String |
|
open fun setLenient(lenient: Boolean): Unit
Specify whether or not parsing is to be lenient. Default is false. With lenient parsing, the parser may allow inputs that do not precisely match the format. With strict parsing, inputs must match the format exactly. |