|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Converter
Converts values of one type into another.
Method Summary | ||
---|---|---|
|
convert(java.lang.Object source,
java.lang.Class<T> target)
Converts an object to an object of another type. |
Method Detail |
---|
<T> T convert(java.lang.Object source, java.lang.Class<T> target) throws java.lang.Exception
If the converstion supplied is not supported this method can either throw an exception or
return null
.
source
- The original object, never null
target
- The type of the converted object.
null
if the conversion could not take place.
java.lang.Exception
- If the conversion can not take place.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |