adapted to Converter signature change
This commit is contained in:
@@ -19,6 +19,7 @@ package org.springframework.core.convert.converter;
|
||||
/**
|
||||
* A converter converts a source object of type S to a target of type T.
|
||||
* Implementations of this interface are thread-safe and can be shared.
|
||||
*
|
||||
* @author Keith Donald
|
||||
* @since 3.0
|
||||
*/
|
||||
@@ -28,7 +29,7 @@ public interface Converter<S, T> {
|
||||
* Convert the source of type S to target type T.
|
||||
* @param source the source object to convert, which must be an instance of S
|
||||
* @return the converted object, which must be an instance of T
|
||||
* @throws IllegalArgumentException if the source could not be converted
|
||||
* @throws IllegalArgumentException if the source could not be converted to the desired target type
|
||||
*/
|
||||
T convert(S source);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user