Author: oheger
Date: Sun Oct 20 20:25:47 2013
New Revision: 1533965
URL: http://svn.apache.org/r1533965
Log:
Generified Converter interface.
Modified:
commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/Converter.java
Modified:
commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/Converter.java
URL:
http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/Converter.java?rev=1533965&r1=1533964&r2=1533965&view=diff
==============================================================================
---
commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/Converter.java
(original)
+++
commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/Converter.java
Sun Oct 20 20:25:47 2013
@@ -43,6 +43,7 @@ public interface Converter {
* Convert the specified input object into an output object of the
* specified type.
*
+ * @param <T> the desired result type
* @param type Data type to which this value should be converted
* @param value The input value to be converted
* @return The converted value
@@ -50,7 +51,7 @@ public interface Converter {
* @exception ConversionException if conversion cannot be performed
* successfully
*/
- public Object convert(Class type, Object value);
+ public <T> T convert(Class<T> type, Object value);
}