Class OperatorToObservableSortedList<T>

java.lang.Object
rx.internal.operators.OperatorToObservableSortedList<T>
Type Parameters:
T - the type of the items emitted by the source and the resulting Observables
All Implemented Interfaces:
Func1<Subscriber<? super List<T>>,Subscriber<? super T>>, Function, Observable.Operator<List<T>,T>

public final class OperatorToObservableSortedList<T> extends Object implements Observable.Operator<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 Details

    • sortFunction

      final Comparator<? super T> sortFunction
    • initialCapacity

      final int initialCapacity
    • DEFAULT_SORT_FUNCTION

      private static final Comparator DEFAULT_SORT_FUNCTION
  • Constructor Details

    • OperatorToObservableSortedList

      public OperatorToObservableSortedList(int initialCapacity)
    • OperatorToObservableSortedList

      public OperatorToObservableSortedList(Func2<? super T,? super T,Integer> sortFunction, int initialCapacity)
  • Method Details