Package com.helixframework.db.repository
Class MapperAdapter<A,B>
java.lang.Object
com.helixframework.db.repository.MapperAdapter<A,B>
- Type Parameters:
A- The source type to be converted.B- The target type after conversion.
- All Implemented Interfaces:
Mapper<A,B>
This abstract class implements the Mapper interface to provide a base adapter
for converting between two types, A and B. It implements default behavior
that can be overridden by subclasses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts an object of type B to an object of type A.Converts an object of type B to an object of type A using the provided context map.Converts an object of type A to an object of type B.Converts an object of type A to an object of type B using the provided context map.
-
Constructor Details
-
MapperAdapter
public MapperAdapter()
-
-
Method Details
-
to
Description copied from interface:MapperConverts an object of type A to an object of type B. -
to
Description copied from interface:MapperConverts an object of type A to an object of type B using the provided context map. -
from
Description copied from interface:MapperConverts an object of type B to an object of type A. -
from
Description copied from interface:MapperConverts an object of type B to an object of type A using the provided context map.
-