Class MultiGroup<T>


  • public class MultiGroup<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiGroup​(Multi<T> upstream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <K> Multi<GroupedMulti<K,​T>> by​(java.util.function.Function<? super T,​? extends K> keyMapper)  
      <K,​V>
      Multi<GroupedMulti<K,​V>>
      by​(java.util.function.Function<? super T,​? extends K> keyMapper, java.util.function.Function<? super T,​? extends V> valueMapper)  
      MultiGroupIntoLists<T> intoLists()
      Splits the upstream Multi into List of items and emits these lists.
      MultiGroupIntoMultis<T> intoMultis()
      Splits the upstream Multi into Multi of items and emits these Multi.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiGroup

        public MultiGroup​(Multi<T> upstream)
    • Method Detail

      • intoLists

        @CheckReturnValue
        public MultiGroupIntoLists<T> intoLists()
        Splits the upstream Multi into List of items and emits these lists. The returned object configures how the split is made.
        Returns:
        the split configuration
      • intoMultis

        @CheckReturnValue
        public MultiGroupIntoMultis<T> intoMultis()
        Splits the upstream Multi into Multi of items and emits these Multi. It transforms the upstream Multi into a Multi<Multi<T>>, where each emitted multi contains items from the upstream.

        The returned object configures how the split is made.

        Returns:
        the split configuration
      • by

        @CheckReturnValue
        public <K> Multi<GroupedMulti<K,​T>> by​(java.util.function.Function<? super T,​? extends K> keyMapper)
      • by

        @CheckReturnValue
        public <K,​V> Multi<GroupedMulti<K,​V>> by​(java.util.function.Function<? super T,​? extends K> keyMapper,
                                                             java.util.function.Function<? super T,​? extends V> valueMapper)