|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Converter
General purpose data type converter that can be registered and used within the BeanUtils package to manage the conversion of objects from one type to another.
Converter subclasses bundled with the BeanUtils library are required to be thread-safe, as users of the library may call conversion methods from more than one thread simultaneously.
Custom converter subclasses created by users of the library can be non-thread-safe if the application using them is single-threaded. However it is recommended that they be written in a thread-safe manner anyway.
Method Summary | |
---|---|
Object |
convert(Class type,
Object value)
Convert the specified input object into an output object of the specified type. |
Method Detail |
---|
Object convert(Class type, Object value)
type
- Data type to which this value should be convertedvalue
- The input value to be converted
ConversionException
- if conversion cannot be performed
successfully
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |