Class StringToBigDecimalConverter

java.lang.Object
com.vaadin.featurepack.data.converter.AbstractStringToNumberConverter<BigDecimal>
com.vaadin.featurepack.data.converter.StringToBigDecimalConverter
All Implemented Interfaces:
Converter<String,BigDecimal>, com.vaadin.flow.data.converter.Converter<String,BigDecimal>, Serializable

public class StringToBigDecimalConverter extends AbstractStringToNumberConverter<BigDecimal>
A converter that converts from String to BigDecimal and back. Uses the given locale and a NumberFormat instance for formatting and parsing.

Leading and trailing white spaces are ignored when converting from a String.

Override and overwrite getFormat(Locale) to use a different format.

Author:
Vaadin Ltd
See Also: