Class StringToFloatConverter

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

public class StringToFloatConverter extends AbstractStringToNumberConverter<Float>
A converter that converts from String to Float 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 AbstractStringToNumberConverter.getFormat(Locale) to use a different format.

Author:
Vaadin Ltd
See Also: