public interface Converter
Modifier and Type | Method and Description |
---|---|
<T> T |
convert(Object source,
Class<T> target)
Converts an object to an object of another type.
|
<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.Copyright © 1996–2019 Geotools. All rights reserved.