Interface Mapper.BiMapper<S,T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.kaktushose.proteus.mapping.Mapper
Mapper.BiMapper<S,
T>, Mapper.MappingContext<S, T>, Mapper.UniMapper<S, T> -
Method Summary
Modifier and TypeMethodDescription@NotNull MappingResult
<T> from
(S source, @NotNull Mapper.MappingContext<S, T> context) @NotNull MappingResult
<S> into
(T target, @NotNull Mapper.MappingContext<T, S> context)
-
Method Details
-
from
@NotNull @NotNull MappingResult<T> from(@NotNull S source, @NotNull @NotNull Mapper.MappingContext<S, T> context) - Parameters:
source
- the sourceMapper.BiMapper
to convert fromcontext
- theMapper.MappingContext
providing additional information- Returns:
- the target
Mapper.BiMapper
to convert into wrapped in aMappingResult
-
into
@NotNull @NotNull MappingResult<S> into(@NotNull T target, @NotNull @NotNull Mapper.MappingContext<T, S> context) - Parameters:
target
- the targetMapper.BiMapper
to convert fromcontext
- theMapper.MappingContext
providing additional information- Returns:
- the source
Mapper.BiMapper
to convert back into wrapped in aMappingResult
-