Package com.helixframework.mapper
Interface MapperDecorator<A,B>
- Type Parameters:
A- the source typeB- the target type
public interface MapperDecorator<A,B>
Decorates mapper operations with cross-cutting behavior.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceUnderlying mapper operation. -
Method Summary
Modifier and TypeMethodDescriptiondefault AdecorateFrom(B value, MappingContext ctx, MapperDecorator.MapperOperation<B, A> operation) Decorates a reverse mapping operation.default BdecorateTo(A value, MappingContext ctx, MapperDecorator.MapperOperation<A, B> operation) Decorates a forward mapping operation.
-
Method Details
-
decorateTo
Decorates a forward mapping operation.- Parameters:
value- the source valuectx- the mapping contextoperation- the underlying operation- Returns:
- the mapped result
-
decorateFrom
Decorates a reverse mapping operation.- Parameters:
value- the source valuectx- the mapping contextoperation- the underlying operation- Returns:
- the mapped result
-