public final class OperatorSingle<T> extends Objectimplements Observable .Operator <T ,T>
| Constructor and Description |
|---|
OperatorSingle(T defaultValue)
|
| Modifier and Type | Method and Description |
|---|---|
Subscriber |
call(Subscriber
|
static <T> OperatorSingle |
instance()
Returns a singleton instance of OperatorSingle (if the stream is empty or has more than one element an error will be emitted) that is cast to the generic type.
|
public OperatorSingle(T defaultValue)
public static <T> OperatorSingle<T> instance()
public Subscriber<? super T> call(Subscriber <? super T> child)