IT. Expert System.

Android Reference

NumberFormatProvider


java.text.spi

Class NumberFormatProvider



  • public abstract class NumberFormatProvider
    extends LocaleServiceProvider
    This abstract class should be extended by service providers that provide NumberFormat instances.

    Note that Android does not support user-supplied locale service providers.

    Since:
    1.6
    • Constructor Detail

      • NumberFormatProvider

        protected NumberFormatProvider()
        Default constructor, for use by subclasses.
    • Method Detail

      • getCurrencyInstance

        public abstract NumberFormat getCurrencyInstance(Locale locale)
        Returns an instance of NumberFormat that formats monetary values for the given locale.
        Parameters:
        locale - the locale
        Returns:
        an instance of NumberFormat
        Throws:
        NullPointerException - if locale == null
        IllegalArgumentException - if locale isn't one of the locales returned from getAvailableLocales().
      • getIntegerInstance

        public abstract NumberFormat getIntegerInstance(Locale locale)
        Returns an instance of NumberFormat that formats integer values for the given locale. The returned NumberFormat is configured to round floating point numbers to the nearest integer using half-even rounding mode for formatting, and to parse only the integer part of an input string.
        Parameters:
        locale - the locale
        Returns:
        an instance of NumberFormat
        Throws:
        NullPointerException - if locale == null
        IllegalArgumentException - if locale isn't one of the locales returned from getAvailableLocales().
      • getNumberInstance

        public abstract NumberFormat getNumberInstance(Locale locale)
        Returns an instance of NumberFormat class for general use in the given locale.
        Parameters:
        locale - the locale
        Returns:
        an instance of NumberFormat
        Throws:
        NullPointerException - if locale == null
        IllegalArgumentException - if locale isn't one of the locales returned from getAvailableLocales().
      • getPercentInstance

        public abstract NumberFormat getPercentInstance(Locale locale)
        Returns an instance of NumberFormat class that formats percentage values for the given locale.
        Parameters:
        locale - the locale
        Returns:
        an instance of NumberFormat
        Throws:
        NullPointerException - if locale == null
        IllegalArgumentException - if locale isn't one of the locales returned from getAvailableLocales().


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1184 / 248551555. Delta: 0.16531 с