Convert a value to the specified target class, if possible.
Might raise an exception (usually {@link IllegalArgumentException}) if a conversion is not available for the specified object and the target class.
@param configuration the Configuration object for the template execution environment. @param processingContext the processing context object containing the variables to be applied to the expression. @param object the object to be converted. @param targetClass the target class the object should be converted to. @param < T> the type of the target class @return the object, converted. Or an exception if the conversion has not been possible.
|
|
|
|
|
|