Interface MultiMapper<F,​T>

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default <T2 extends java.util.Collection<T>>
      T2
      from​(@NonNull java.util.Collection<F> inputs, @NonNull java.util.stream.Collector<T,​?,​T2> collector)
      Maps Collections of the from type to Collections of the to type.
      • Methods inherited from interface nl.rkuijt.mapperlib.mapper.single.Mapper

        from
    • 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 the from type to Collections of the to type.
        Type Parameters:
        T2 - Type of the output collection.
        Parameters:
        inputs - Collection of from objects.
        collector - Collector used to collect mapped objects.
        Returns:
        Collection of to objects.
        ImplNote:
        Should not be overridden.
        ImplSpec:
        Null references must be handled by the mapping implementation.