src/main/java/io/reactivex/Flowable.java
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    @BackpressureSupport(BackpressureKind.PASS_THROUGH)
    @Deprecated
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public final <T2> Flowable<T2> dematerialize() {
        return RxJavaPlugins.onAssembly(new FlowableDematerialize(this, Functions.identity()));
    }
@CheckReturnValue
    @SchedulerSupport(SchedulerSupport.NONE)
    @BackpressureSupport(BackpressureKind.PASS_THROUGH)
    @Deprecated
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public final <T2> Flowable<T2> dematerialize() {
        return RxJavaPlugins.onAssembly(new FlowableDematerialize(this, Functions.identity()));
    }
@ CheckReturnValue @ SchedulerSupport ( SchedulerSupport . NONE ) @ BackpressureSupport ( BackpressureKind . PASS_THROUGH ) @ Deprecated @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) public final < T2 > Flowable < T2 > dematerialize ( ) { return RxJavaPlugins . onAssembly ( new FlowableDematerialize ( this , Functions . identity ( ) ) ) ; }
Returns a Flowable that reverses the effect of {@link #materialize materialize} by transforming the
{@link Notification} objects emitted by the source Publisher into the items or notifications they
represent.
<p>
<img width="640" height="335" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/dematerialize.png" alt="">
<p>
When the upstream signals an {@link Notification#createOnError(Throwable) onError} or
{@link Notification#createOnComplete() onComplete} item, the
returned Flowable cancels the flow and terminates with that type of terminal event:
<pre><code>
Flowable.just(createOnNext(1), createOnComplete(), createOnNext(2))
.doOnCancel(() -&gt; System.out.println("Cancelled!"));
.dematerialize()
.test()
.assertResult(1);
</code></pre>
If the upstream signals {@code onError} or {@code onComplete} directly, the flow is terminated
with the same event.
<pre><code>
Flowable.just(createOnNext(1), createOnNext(2))
.dematerialize()
.test()
.assertResult(1, 2);
</code></pre>
If this behavior is not desired, the completion can be suppressed by applying {@link #concatWith(Publisher)}
with a {@link #never()} source.
<dl>
<dt><b>Backpressure:</b></dt>
<dd>The operator doesn't interfere with backpressure which is determined by the source {@code Publisher}'s
backpressure behavior.</dd>
<dt><b>Scheduler:</b></dt>
<dd>{@code dematerialize} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>

@param <T2> the output value type
@return a Flowable that emits the items and notifications embedded in the {@link Notification} objects
emitted by the source Publisher
@see <a href="http://reactivex.io/documentation/operators/materialize-dematerialize.html">ReactiveX operators documentation: Dematerialize</a>
@see #dematerialize(Function)
@deprecated in 2.2.4; inherently type-unsafe as it overrides the output generic type. Use {@link #dematerialize(Function)} instead.
Returns a Flowable that reverses the effect of { @link #materialize materialize } by transforming the { @link Notification } objects emitted by the source Publisher into the items or notifications they represent . <p > <img width = 640 height = 335 src = https : // raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / dematerialize . png alt = > <p > When the upstream signals an { @link Notification#createOnError ( Throwable ) onError } or { @link Notification#createOnComplete () onComplete } item the returned Flowable cancels the flow and terminates with that type of terminal event : <pre > <code > Flowable . just ( createOnNext ( 1 ) createOnComplete () createOnNext ( 2 )) . doOnCancel (( ) - &gt ; System . out . println ( Cancelled! )) ; . dematerialize () . test () . assertResult ( 1 ) ; < / code > < / pre > If the upstream signals { @code onError } or { @code onComplete } directly the flow is terminated with the same event . <pre > <code > Flowable . just ( createOnNext ( 1 ) createOnNext ( 2 )) . dematerialize () . test () . assertResult ( 1 2 ) ; < / code > < / pre > If this behavior is not desired the completion can be suppressed by applying { @link #concatWith ( Publisher ) } with a { @link #never () } source . <dl > <dt > <b > Backpressure : < / b > < / dt > <dd > The operator doesn t interfere with backpressure which is determined by the source { @code Publisher } s backpressure behavior . < / dd > <dt > <b > Scheduler : < / b > < / dt > <dd > { @code dematerialize } does not operate by default on a particular { @link Scheduler } . < / dd > < / dl >