类 AbstractNumberFormatter

    • 方法详细资料

      • setLenient

        public void setLenient​(boolean lenient)
        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.

      • print

        public String print​(Number number,
                            Locale locale)
        从接口复制的说明: Printer
        Print the object of type T for display.
        指定者:
        print 在接口中 Printer<Number>
        参数:
        number - the instance to print
        locale - the current user locale
        返回:
        the printed text string
      • getNumberFormat

        protected abstract NumberFormat getNumberFormat​(Locale locale)
        Obtain a concrete NumberFormat for the specified locale.
        参数:
        locale - the current locale
        返回:
        the NumberFormat instance (never null)