|
||||||||||
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(Object source,
Class<T> target)
Converts an object to an object of another type. |
Method Detail |
---|
<T> T convert(Object source, Class<T> target) throws 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.
Exception
- If the conversion can not take place.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |