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.BiMapperto convert fromcontext- theMapper.MappingContextproviding additional information- Returns:
- the target
Mapper.BiMapperto 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.BiMapperto convert fromcontext- theMapper.MappingContextproviding additional information- Returns:
- the source
Mapper.BiMapperto convert back into wrapped in aMappingResult
-