This page shows operators that perform mathematical or other operations over an entire sequence of items emitted by an Observable. Because these operations must wait for the source Observable to complete emitting items before they can construct their own emissions (and must usually buffer these items), these operators are dangerous to use on Observables that may have very long or infinite sequences.
averageInteger( )
— calculates the average of Integers emitted by an Observable and emits this averageaverageLong( )
— calculates the average of Longs emitted by an Observable and emits this averageaverageFloat( )
— calculates the average of Floats emitted by an Observable and emits this averageaverageDouble( )
— calculates the average of Doubles emitted by an Observable and emits this averagemax( )
— emits the maximum value emitted by a source ObservablemaxBy( )
— emits the item emitted by the source Observable that has the maximum key valuemin( )
— emits the minimum value emitted by a source ObservableminBy( )
— emits the item emitted by the source Observable that has the minimum key valuesumInteger( )
— adds the Integers emitted by an Observable and emits this sumsumLong( )
— adds the Longs emitted by an Observable and emits this sumsumFloat( )
— adds the Floats emitted by an Observable and emits this sumsumDouble( )
— adds the Doubles emitted by an Observable and emits this sum
concat( )
— concatenate two or more Observables sequentiallycount( )
andcountLong( )
— counts the number of items emitted by an Observable and emits this countreduce( )
— apply a function to each emitted item, sequentially, and emit only the final accumulated valuecollect( )
— collect items emitted by the source Observable into a single mutable data structure and return an Observable that emits this structuretoList( )
— collect all items from an Observable and emit them as a single ListtoSortedList( )
— collect all items from an Observable and emit them as a single, sorted ListtoMap( )
— convert the sequence of items emitted by an Observable into a map keyed by a specified key functiontoMultiMap( )
— convert the sequence of items emitted by an Observable into an ArrayList that is also a map keyed by a specified key function