Interface MultiBiMapper<F,​T>

    • Method Summary

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

        reverse
      • Methods inherited from interface nl.rkuijt.mapperlib.mapper.single.Mapper

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