- Type Parameters:
T
- the value type
- All Implemented Interfaces:
- rx.functions.Action, rx.functions.Action1<rx.SingleSubscriber<? super T>>, rx.functions.Function, rx.Single.OnSubscribe<T>
public final class PublisherAsSingle<T>
extends java.lang.Object
implements rx.Single.OnSubscribe<T>
Wraps a Publisher and exposes it as a Single, signalling NoSuchElementException
if the Publisher is empty or IndexOutOfBoundsExcepion if the Publisher produces
more than one element.