Class LocaleConverter

java.lang.Object
org.apache.commons.beanutils2.converters.AbstractConverter<Locale>
org.apache.commons.beanutils2.converters.LocaleConverter
All Implemented Interfaces:
Converter<Locale>

Converter implementation that handles conversion to and from Locale.
Since:
2.0.0
  • Constructor Details

    • LocaleConverter

      public LocaleConverter()
      Construct a Locale Converter that throws a ConversionException if an error occurs.
    • LocaleConverter

      public LocaleConverter(Locale defaultValue)
      Constructs a Converter that will return the specified default value if a conversion error occurs.
      Parameters:
      defaultValue - The default value to be returned if the value to be converted is missing or an error occurs converting the value.
  • Method Details