org.apache.commons.convert
Class DateTimeConverters.GenericLocalizedConverter<S,T>
java.lang.Object
org.apache.commons.convert.AbstractConverter<S,T>
org.apache.commons.convert.AbstractLocalizedConverter<S,T>
org.apache.commons.convert.DateTimeConverters.GenericLocalizedConverter<S,T>
- All Implemented Interfaces:
- Converter<S,T>, ConverterLoader, LocalizedConverter<S,T>
- Direct Known Subclasses:
- DateTimeConverters.DateToCalendar
- Enclosing class:
- DateTimeConverters
public abstract static class DateTimeConverters.GenericLocalizedConverter<S,T>
- extends AbstractLocalizedConverter<S,T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateTimeConverters.GenericLocalizedConverter
protected DateTimeConverters.GenericLocalizedConverter(Class<S> sourceClass,
Class<T> targetClass)
convert
public T convert(S obj)
throws ConversionException
- Description copied from interface:
Converter
- Converts
obj to T.
- Parameters:
obj - The source Object to convert
- Returns:
- The converted
Object
- Throws:
ConversionException
convert
public T convert(S obj,
Locale locale,
TimeZone timeZone)
throws ConversionException
- Description copied from interface:
LocalizedConverter
- Converts
obj to T.
- Specified by:
convert in interface LocalizedConverter<S,T>- Overrides:
convert in class AbstractLocalizedConverter<S,T>
- Parameters:
obj - The source Object to convertlocale - The locale used for conversion - must not be nulltimeZone - The time zone used for conversion - must not be null
- Returns:
- The converted
Object
- Throws:
ConversionException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.