Package org.apache.commons.beanutils2.locale

# Interface LocaleConverter<T>

Type Parameters:
  `T` - The converter type.

All Superinterfaces:
  `Converter<T>`

All Known Implementing Classes:
  `BaseLocaleConverter`, `BigDecimalLocaleConverter`, `BigIntegerLocaleConverter`, `ByteLocaleConverter`, `DateLocaleConverter`, `DecimalLocaleConverter`, `DoubleLocaleConverter`, `FloatLocaleConverter`, `IntegerLocaleConverter`, `LongLocaleConverter`, `ShortLocaleConverter`, `SqlDateLocaleConverter`, `SqlTimeLocaleConverter`, `SqlTimestampLocaleConverter`, `StringLocaleConverter`

public interface LocaleConverter<T> extends Converter<T>

General purpose locale-sensitive data type converter that can be registered and used within the BeanUtils package to manage the conversion of objects from one type to another.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `<R> R`
  `convert(Class<R> type, Object value, String pattern)`
  Convert the specified locale-sensitive input object into an output object of the specified type.

  ### Methods inherited from interface org.apache.commons.beanutils2.Converter

  `convert`

- ## Method Details

  - ### convert

    <R> R convert(Class<R> type, Object value, String pattern)
    Convert the specified locale-sensitive input object into an output object of the specified type.
    Type Parameters:
      `R` - the result type.
    Parameters:
      `type` - Data type to which this value should be converted
      `value` - The input value to be converted
      `pattern` - The user-defined pattern is used for the input object formatting.
    Returns:
      The converted value
    Throws:
      `ConversionException` - if conversion cannot be performed successfully or if the target type is not supported