numberformat
- 网络数字格式;字格式
-
The method uses NumberFormat . parse ( String ) for validation and conversion .
该方法使用NumberFormat.parse(String)来验证和转换。
-
Fortunately , it turns out that an existing NumberFormat method , when used with care , can resolve the problem .
幸运地是,原来小心地使用一个现有的NumberFormat方法能够解决这一问题。
-
In fact , NumberInput uses NumberFormat for formatting the values displayed in the input fields .
事实上,NumberInput使用NumberFormat对输入中显示的值进行格式化。
-
The implementation of a NumberFormat instance
NumberFormat实例的实现
-
In my testing , the method properly handled all of the conditions missed by NumberFormat . parse ( String ) .
在我的测试中,该方法恰当地处理了所有被NumberFormat.parse(String)忽略的情况。
-
NumberFormat is an abstract class , but it provides static factory getXXXInstance () methods for obtaining concrete implementations with predefined , localized formats .
NumberFormat是一个抽象的类,但它提供静态工厂getXXXInstance()方法,该方法用预先定义的本地化了的格式来获取具体的实现。
-
This behavior is different from the result for empty strings using NumberFormat . parse ( String source ), which throw an " unparsable number " ParseException .
这个行为和使用NumberFormat.parse(Stringsource)的空字符串结果是不同的,后者抛出一个“unparsablenumber”ParseException。
-
This article explains the rationale for NumberFormat , reviews its functionality , exposes the class 's parsing gotchas , and offers guidelines for using it reliably .
本文解释了NumberFormat的基本原理,考察了其功能,揭示了该类的解析陷阱,并提供了可靠的使用指南。
-
These results , which were consistent over many tests with JDK1.4 and5.0 , are difficult to understand given the amount of work that went into implementing the NumberFormat and DecimalFormat classes .
这些结果,对于JDK1.4和5.0上的许多测试都是一致的,所以花了大量工夫探讨NumberFormat和DecimalFormat类的实现就很难理解。
-
Rather than being a bug , it appears to be the design of NumberFormat . parse ( String ) to return a number from some portion of an input string if at all possible .
与其成为一个bug,不如由NumberFormat.parse(String)从输入的字符串的某部分中返回一个数字(如果可能的话)。
-
The code and discussion in this article use the defaults returned by NumberFormat . getNumberInstance () for formatting and parsing double values and NumberFormat . getIntegerInstance () for integer values .
本文中的代码和讨论使用的是默认值,其中用于格式化及解析双精度值的是由NumberFormat.getNumberInstance()返回的,用于格式化及解析整数值的是由NumberFormat.getIntegerInstance()返回的。