public class PercentageStringConverter extends NumberStringConverter
StringConverter
implementation for Number
values
that represent percentages.
CurrencyStringConverter
,
NumberStringConverter
,
StringConverter
Constructor and Description |
---|
PercentageStringConverter() |
PercentageStringConverter(Locale locale) |
PercentageStringConverter(NumberFormat numberFormat) |
Modifier and Type | Method and Description |
---|---|
NumberFormat |
getNumberFormat()
Return a
NumberFormat instance to use for formatting
and parsing in this StringConverter . |
fromString, toString
public PercentageStringConverter()
public PercentageStringConverter(Locale locale)
public PercentageStringConverter(NumberFormat numberFormat)
public NumberFormat getNumberFormat()
Return a NumberFormat
instance to use for formatting
and parsing in this StringConverter
.
getNumberFormat
in class NumberStringConverter
Submit 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, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.