public class JosmDecimalFormatSymbolsProvider extends java.text.spi.DecimalFormatSymbolsProvider
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.Constructor and Description |
---|
JosmDecimalFormatSymbolsProvider() |
Modifier and Type | Method and 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. |
public JosmDecimalFormatSymbolsProvider()
public java.text.DecimalFormatSymbols getInstance(java.util.Locale locale)
getInstance
in class java.text.spi.DecimalFormatSymbolsProvider
public java.util.Locale[] getAvailableLocales()
getAvailableLocales
in class java.util.spi.LocaleServiceProvider
public static double parseDouble(java.lang.String s)
double
initialized to the value represented by the specified String
,
allowing both dot and comma decimal separators.s
- the string to be parsed.double
value represented by the string argument.java.lang.NullPointerException
- if the string is nulljava.lang.NumberFormatException
- if the string does not contain a parsable double
.Double.parseDouble(String)