Top Description Fields Constructors Methods
rx.internal.operators

public final Enum NeverObservableHolder

extends Enum<NeverObservableHolder>
implements Observable.OnSubscribe<Object>
Class Inheritance
All Implemented Interfaces
rx.Observable.OnSubscribe, rx.functions.Action1, rx.functions.Action, rx.functions.Function
Imports
rx.*, .Observable.OnSubscribe

Holds a singleton instance of a never Observable which is stateless doesn't call any of the Subscriber's methods.

Field Summary

Modifier and TypeField and Description
public static final NeverObservableHolder
pack-priv static final Observable<Object>
NEVER

The singleton instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
call(Subscriber<? super Object> child)

Implements rx.functions.Action1.call.

public static <
the value type
T
>
Observable<T>

Returns:

a type-corrected singleton instance of the never Observable.
instance
()

Returns a type-corrected singleton instance of the never Observable.

public static NeverObservableHolder
public static NeverObservableHolder[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final NeverObservableHolder INSTANCE
NEVERback to summary
pack-priv static final Observable<Object> NEVER

The singleton instance.

Constructor Detail

NeverObservableHolderback to summary
private NeverObservableHolder()

Method Detail

callback to summary
public void call(Subscriber<? super Object> child)

Implements rx.functions.Action1.call.

Annotations
@Override
instanceback to summary
public static <T> Observable<T> instance()

Returns a type-corrected singleton instance of the never Observable.

Parameters
<T>
the value type
Returns:Observable<T>

a type-corrected singleton instance of the never Observable.

Annotations
@SuppressWarnings:unchecked
valueOfback to summary
public static NeverObservableHolder valueOf(String name)
valuesback to summary
public static NeverObservableHolder[] values()