T
- the value typepublic final class OperatorSingle<T> extends Object implements Observable.Operator<T,T>
Constructor and Description |
---|
OperatorSingle(T defaultValue) |
Modifier and Type | Method and Description |
---|---|
Subscriber<? super T> |
call(Subscriber<? super T> child) |
static <T> OperatorSingle<T> |
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()
T
- the value typepublic Subscriber<? super T> call(Subscriber<? super T> child)
call
in interface Func1<Subscriber<? super T>,Subscriber<? super T>>
Copyright © 2018. All rights reserved.