Class JosmDecimalFormatSymbolsProvider


  • public class JosmDecimalFormatSymbolsProvider
    extends java.text.spi.DecimalFormatSymbolsProvider
    JOSM implementation of the DecimalFormatSymbols class, consistent with ISO 80000-1. This class will only be used with Java 9 and later runtimes, as Java 8 implementation relies on Java Extension Mechanism only, while Java 9 supports application classpath. See LocaleServiceProvider javadoc for more details.
    Since:
    12931
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Locale[] getAvailableLocales()  
      java.text.DecimalFormatSymbols getInstance​(java.util.Locale locale)  
      static double parseDouble​(java.lang.String s)
      Returns a new double initialized to the value represented by the specified String, allowing both dot and comma decimal separators.
      • Methods inherited from class java.util.spi.LocaleServiceProvider

        isSupportedLocale
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public java.text.DecimalFormatSymbols getInstance​(java.util.Locale locale)
        Specified by:
        getInstance in class java.text.spi.DecimalFormatSymbolsProvider
      • getAvailableLocales

        public java.util.Locale[] getAvailableLocales()
        Specified by:
        getAvailableLocales in class java.util.spi.LocaleServiceProvider
      • parseDouble

        public static double parseDouble​(java.lang.String s)
        Returns a new double initialized to the value represented by the specified String, allowing both dot and comma decimal separators.
        Parameters:
        s - the string to be parsed.
        Returns:
        the double value represented by the string argument.
        Throws:
        java.lang.NullPointerException - if the string is null
        java.lang.NumberFormatException - if the string does not contain a parsable double.
        Since:
        13050
        See Also:
        Double.parseDouble(String)