Package rx.internal.operators
Class OnSubscribeSingle<T>
- java.lang.Object
-
- rx.internal.operators.OnSubscribeSingle<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
Action
,Action1<SingleSubscriber<? super T>>
,Function
,Single.OnSubscribe<T>
public class OnSubscribeSingle<T> extends java.lang.Object implements Single.OnSubscribe<T>
Allows conversion of an Observable to a Single ensuring that exactly one item is emitted - no more and no less. Also forwards errors as appropriate.
-
-
Field Summary
Fields Modifier and Type Field Description private Observable<T>
observable
-
Constructor Summary
Constructors Constructor Description OnSubscribeSingle(Observable<T> observable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(SingleSubscriber<? super T> child)
static <T> OnSubscribeSingle<T>
create(Observable<T> observable)
-
-
-
Field Detail
-
observable
private final Observable<T> observable
-
-
Constructor Detail
-
OnSubscribeSingle
public OnSubscribeSingle(Observable<T> observable)
-
-
Method Detail
-
call
public void call(SingleSubscriber<? super T> child)
-
create
public static <T> OnSubscribeSingle<T> create(Observable<T> observable)
-
-