Package org.dizitart.no2.common.mapper
Interface NitriteMapper
-
- All Superinterfaces:
AutoCloseable,NitritePlugin
- All Known Implementing Classes:
SimpleNitriteMapper
public interface NitriteMapper extends NitritePlugin
An interface that provides a method to try converting an object of one type to an object of another type.- Since:
- 1.0
- Author:
- Anindya Chatterjee.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <Source,Target>
ObjecttryConvert(Source source, Class<Target> type)Tries to convert an object of typeSourceto an object of typeTarget.-
Methods inherited from interface org.dizitart.no2.common.module.NitritePlugin
close, initialize
-
-
-
-
Method Detail
-
tryConvert
<Source,Target> Object tryConvert(Source source, Class<Target> type)
Tries to convert an object of typeSourceto an object of typeTarget. If the conversion is not possible, it will return the source object.- Type Parameters:
Source- the type parameterTarget- the type parameter- Parameters:
source- the sourcetype- the type- Returns:
- the target
-
-