Package org.apache.cayenne.reflect
Class Converter<T>
java.lang.Object
org.apache.cayenne.reflect.Converter<T>
- Direct Known Subclasses:
ToAnyConverter
A helper class to do property type conversions.
- Since:
- 1.2
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Converter
public Converter()
-
-
Method Details
-
convert
Converts object to supported class without doing any type checking.- Parameters:
value
- the object to convert; the sourcetype
- the Class to convert the value to; the destination type- Returns:
- an object of type @code{type}. If the conversion fails an exception will be thrown. If value is null then the result will be null.
-