Package rx.internal.operators
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 resultingObservables
- 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).

-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator(package private) final int(package private) final Comparator<? super T> -
Constructor Summary
ConstructorsConstructorDescriptionOperatorToObservableSortedList(int initialCapacity) OperatorToObservableSortedList(Func2<? super T, ? super T, Integer> sortFunction, int initialCapacity) -
Method Summary
-
Field Details
-
sortFunction
-
initialCapacity
final int initialCapacity -
DEFAULT_SORT_FUNCTION
-
-
Constructor Details
-
OperatorToObservableSortedList
public OperatorToObservableSortedList(int initialCapacity) -
OperatorToObservableSortedList
-
-
Method Details
-
call
- Specified by:
callin interfaceFunc1<Subscriber<? super List<T>>,Subscriber<? super T>>
-