?? LocaleConverter

??????:
Converter
???????:
BaseLocaleConverter, BigDecimalLocaleConverter, BigIntegerLocaleConverter, ByteLocaleConverter, DateLocaleConverter, DecimalLocaleConverter, DoubleLocaleConverter, FloatLocaleConverter, IntegerLocaleConverter, LongLocaleConverter, ShortLocaleConverter, SqlDateLocaleConverter, SqlTimeLocaleConverter, SqlTimestampLocaleConverter, StringLocaleConverter

public interface LocaleConverter extends Converter

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.

??:
$Id$
  • ????

    ??????
    ??
    ??
    <T> T
    convert(Class<T> type, Object value, String pattern)
    Convert the specified locale-sensitive input object into an output object of the specified type.

    ???????? org.apache.commons.beanutils.Converter

    convert
  • ??????

    • convert

      <T> T convert(Class<T> type, Object value, String pattern)
      Convert the specified locale-sensitive input object into an output object of the specified type.
      ????:
      T - The desired target type of the conversion
      ??:
      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.
      ??:
      The converted value
      ??:
      ConversionException - if conversion cannot be performed successfully or if the target type is not supported