Package org.dizitart.no2.common.mapper
Interface NitriteMapper
- All Superinterfaces:
AutoCloseable,NitritePlugin
- All Known Implementing Classes:
SimpleNitriteMapper
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
Modifier and TypeMethodDescription<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 Details
-
tryConvert
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
-