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