Class BooleanConverter

java.lang.Object
org.fastnate.data.properties.BooleanConverter
All Implemented Interfaces:
Function<String,Boolean>, PropertyConverter<Boolean>

public class BooleanConverter extends Object implements PropertyConverter<Boolean>, Function<String,Boolean>
Converts a string in an import file to a Boolean. Possible values that evaluate to true (matching is case insensitive):
  • true
  • 1
  • on
  • x
  • y* (= yes - English)
  • s* (= sí - Spanish, Italian, sim - Portuguese)
  • o* (= oui - French)
  • j* (= ja - German)
  • д* (= да - Russian)
Author:
Tobias Liefke