Spec-Zone .ru
спецификации, руководства, описания, API
|
public class NumberStringConverter extends StringConverter<java.lang.Number>
StringConverter
implementation for Number
values.
Constructor and Description |
---|
NumberStringConverter() |
NumberStringConverter(java.util.Locale locale) |
NumberStringConverter(java.util.Locale locale,
java.lang.String pattern) |
NumberStringConverter(java.text.NumberFormat numberFormat) |
NumberStringConverter(java.lang.String pattern) |
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
fromString(java.lang.String value)
Converts the string provided into an object defined by the specific converter.
|
protected java.text.NumberFormat |
getNumberFormat()
Return a
NumberFormat instance to use for formatting
and parsing in this StringConverter . |
java.lang.String |
toString(java.lang.Number value)
Converts the object provided into its string form.
|
public NumberStringConverter()
public NumberStringConverter(java.util.Locale locale)
public NumberStringConverter(java.lang.String pattern)
public NumberStringConverter(java.util.Locale locale, java.lang.String pattern)
public NumberStringConverter(java.text.NumberFormat numberFormat)
public java.lang.Number fromString(java.lang.String value)
fromString
in class StringConverter<java.lang.Number>
public java.lang.String toString(java.lang.Number value)
toString
in class StringConverter<java.lang.Number>
protected java.text.NumberFormat getNumberFormat()
Return a NumberFormat
instance to use for formatting
and parsing in this StringConverter
.
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to