Class StringToBooleanConverter

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

public class StringToBooleanConverter extends Object implements Converter<String,Boolean>
A converter that converts from String to Boolean and back. The String representation is given by Boolean.toString() or provided in constructor StringToBooleanConverter(String, String).

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

For language-dependent representation, subclasses should overwrite getFalseString(Locale) and getTrueString(Locale)

Author:
Vaadin Ltd
See Also: