Class FromStringConverter
- java.lang.Object
-
- org.springframework.ldap.odm.typeconversion.impl.converters.FromStringConverter
-
-
Constructor Summary
Constructors Constructor Description FromStringConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tconvert(java.lang.Object source, java.lang.Class<T> toClass)Attempt to convert a given object to a named class.
-
-
-
Method Detail
-
convert
public <T> T convert(java.lang.Object source, java.lang.Class<T> toClass) throws java.lang.ExceptionDescription copied from interface:ConverterAttempt to convert a given object to a named class.- Specified by:
convertin interfaceConverter- Type Parameters:
T- The class to convert to.- Parameters:
source- The object to convert.toClass- The class to convert to.- Returns:
- The converted class or null if the conversion was not possible.
- Throws:
java.lang.Exception- Any exception may be throw by a Converter on error.
-
-