| org.geotools.util.Converter
Converter | public interface Converter (Code) | | Converts values of one type into another.
author: Justin Deoliveira, The Open Planning Project since: 2.4 |
Method Summary | |
Object | convert(Object source, Class target) Converts an object to an object of another type.
If the converstion supplied is not supported this method can either throw an exception or
return null .
Parameters: source - The original object, never null Parameters: target - The type of the converted object. |
convert | Object convert(Object source, Class target) throws Exception(Code) | | Converts an object to an object of another type.
If the converstion supplied is not supported this method can either throw an exception or
return null .
Parameters: source - The original object, never null Parameters: target - The type of the converted object. An instance of target, or null if the conversion could not take place. throws: Exception - If the conversion can not take place. |
|
|