public class PercentageStringConverter extends NumberStringConverter
StringConverter implementation for Number values
that represent percentages.
CurrencyStringConverter,
NumberStringConverter,
StringConverter| Constructor and Description |
|---|
PercentageStringConverter() |
PercentageStringConverter(java.util.Locale locale) |
PercentageStringConverter(java.text.NumberFormat numberFormat) |
| Modifier and Type | Method and Description |
|---|---|
java.text.NumberFormat |
getNumberFormat()
Return a
NumberFormat instance to use for formatting
and parsing in this StringConverter. |
fromString, toStringpublic PercentageStringConverter()
public PercentageStringConverter(java.util.Locale locale)
public PercentageStringConverter(java.text.NumberFormat numberFormat)
public java.text.NumberFormat getNumberFormat()
Return a NumberFormat instance to use for formatting
and parsing in this StringConverter.
getNumberFormat in class NumberStringConverterSubmit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.