Class OperatorToObservableSortedList<T>

  • Type Parameters:
    T - the type of the items emitted by the source and the resulting Observables
    All Implemented Interfaces:
    Func1<Subscriber<? super java.util.List<T>>,​Subscriber<? super T>>, Function, Observable.Operator<java.util.List<T>,​T>

    public final class OperatorToObservableSortedList<T>
    extends java.lang.Object
    implements Observable.Operator<java.util.List<T>,​T>
    Return an Observable that emits the items emitted by the source Observable, in a sorted order (each item emitted by the Observable must implement Comparable with respect to all other items in the sequence, or you must pass in a sort function).

    • Field Detail

      • sortFunction

        final java.util.Comparator<? super T> sortFunction
      • initialCapacity

        final int initialCapacity
      • DEFAULT_SORT_FUNCTION

        private static final java.util.Comparator DEFAULT_SORT_FUNCTION
    • Constructor Detail

      • OperatorToObservableSortedList

        public OperatorToObservableSortedList​(int initialCapacity)
      • OperatorToObservableSortedList

        public OperatorToObservableSortedList​(Func2<? super T,​? super T,​java.lang.Integer> sortFunction,
                                              int initialCapacity)