Top Description Fields Constructors Methods
rx.internal.operators

public Class OnSubscribeSingle<T>

extends Object
implements Single.OnSubscribe<T>
Class Inheritance
All Implemented Interfaces
rx.Single.OnSubscribe, rx.functions.Action1, rx.functions.Action, rx.functions.Function
Type Parameters
<T>
the value type
Imports
java.util.NoSuchElementException, rx.*

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

Modifier and TypeField and Description
private final Observable<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
call(final SingleSubscriber<? super T> child)

Implements rx.functions.Action1.call.

public static <T> OnSubscribeSingle<T>
create(Observable<T> observable)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

observableback to summary
private final Observable<T> observable

Constructor Detail

OnSubscribeSingleback to summary
public OnSubscribeSingle(Observable<T> observable)

Method Detail

callback to summary
public void call(final SingleSubscriber<? super T> child)

Implements rx.functions.Action1.call.

Annotations
@Override
createback to summary
public static <T> OnSubscribeSingle<T> create(Observable<T> observable)