Package org.apache.cayenne.reflect
Class ToAnyConverter<T>
java.lang.Object
org.apache.cayenne.reflect.Converter<T>
org.apache.cayenne.reflect.ToAnyConverter<T>
public class ToAnyConverter<T> extends Converter<T>
Can convert to any class that has a constructor that takes a
single Object or a single String parameter.
-
Constructor Summary
Constructors Constructor Description ToAnyConverter() -
Method Summary
-
Constructor Details
-
ToAnyConverter
public ToAnyConverter()
-
-
Method Details
-
convert
Description copied from class:ConverterConverts object to supported class without doing any type checking.- Specified by:
convertin classConverter<T>- 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.
-