Package org.geotools.util
Interface Converter
public interface Converter
Converts values of one type into another.
- Since:
- 2.4
- Author:
- Justin Deoliveira, The Open Planning Project
-
Method Summary
-
Method Details
-
convert
Converts an object to an object of another type.If the conversion supplied is not supported, this method can either throw an exception or return
null
.- Parameters:
source
- The original object, nevernull
target
- The type of the converted object.- Returns:
- An instance of target, or
null
if the conversion could not take place. - Throws:
Exception
- If the conversion can not take place.
-