Package nl.rkuijt.mapperlib.mapper.multi
Interface MultiBiMapper<F,T>
-
- Type Parameters:
F- the type to map from.T- the type to map to.
- All Superinterfaces:
BiMapper<F,T>,Mapper<F,T>,MultiMapper<F,T>
- All Known Implementing Classes:
NullSafeMultiBiMapper
public interface MultiBiMapper<F,T> extends MultiMapper<F,T>, BiMapper<F,T>
Bidirectional Collection type mapper.- See Also:
MultiMapper,BiMapper
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <F2 extends java.util.Collection<F>>
F2reverse(@NonNull java.util.Collection<T> inputs, @NonNull java.util.stream.Collector<F,?,F2> collector)Maps Collections of thetotype to Collections of thefromtype.-
Methods inherited from interface nl.rkuijt.mapperlib.mapper.multi.MultiMapper
from
-
-
-
-
Method Detail
-
reverse
default <F2 extends java.util.Collection<F>> F2 reverse(@NonNull @NonNull java.util.Collection<T> inputs, @NonNull @NonNull java.util.stream.Collector<F,?,F2> collector)
Maps Collections of thetotype to Collections of thefromtype.- Type Parameters:
F2- Type of the output collection.- Parameters:
inputs- Collection oftoobjects.collector- Collector used to collect mapped objects.- Returns:
- Collection of
fromobjects. - ImplNote:
- Should not be overridden.
- ImplSpec:
- Null references must be handled by the mapping implementation.
-
-