public class CurrencyStringConverter extends NumberStringConverter
StringConverter
implementation for Number
values
that represent currency.
PercentageStringConverter
,
NumberStringConverter
,
StringConverter
Constructor and Description |
---|
CurrencyStringConverter() |
CurrencyStringConverter(Locale locale) |
CurrencyStringConverter(Locale locale,
String pattern) |
CurrencyStringConverter(NumberFormat numberFormat) |
CurrencyStringConverter(String pattern) |
Modifier and Type | Method and Description |
---|---|
protected NumberFormat |
getNumberFormat()
Return a
NumberFormat instance to use for formatting
and parsing in this StringConverter . |
fromString, toString
public CurrencyStringConverter()
public CurrencyStringConverter(Locale locale)
public CurrencyStringConverter(String pattern)
public CurrencyStringConverter(NumberFormat numberFormat)
protected NumberFormat getNumberFormat()
Return a NumberFormat
instance to use for formatting
and parsing in this StringConverter
.
getNumberFormat
in class NumberStringConverter
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.