Package io.helidon.common.mapper
Interface Mapper<SOURCE,TARGET>
-
- Type Parameters:
SOURCE
- type of the supported sourceTARGET
- type of the supported target
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Mapper<SOURCE,TARGET>
A generic and general approach to mapping two types. A mapper is unidirectional - fromSOURCE
toTARGET
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TARGET
map(SOURCE source)
Map an instance of source type to an instance of target type.
-