cg.smali

.class final Lio/reactivex/internal/operators/observable/cg;
.super Lio/reactivex/internal/observers/b;
.source "ObservableFromIterable.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Lio/reactivex/internal/observers/b",
        "<TT;>;"
    }
.end annotation


# instance fields
.field final actual:Lio/reactivex/r;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/r",
            "<-TT;>;"
        }
    .end annotation
.end field

.field bQf:Z

.field private bQh:Z

.field private volatile disposed:Z

.field private done:Z

.field final it:Ljava/util/Iterator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Iterator",
            "<+TT;>;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Lio/reactivex/r;Ljava/util/Iterator;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lio/reactivex/r",
            "<-TT;>;",
            "Ljava/util/Iterator",
            "<+TT;>;)V"
        }
    .end annotation

    .prologue
    .line 76
    invoke-direct {p0}, Lio/reactivex/internal/observers/b;-><init>()V

    .line 77
    iput-object p1, p0, Lio/reactivex/internal/operators/observable/cg;->actual:Lio/reactivex/r;

    .line 78
    iput-object p2, p0, Lio/reactivex/internal/operators/observable/cg;->it:Ljava/util/Iterator;

    .line 79
    return-void
.end method


# virtual methods
.method public final clear()V
    .registers 2

    .prologue
    .line 151
    const/4 v0, 0x1

    iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/cg;->done:Z

    .line 152
    return-void
.end method

.method public final dispose()V
    .registers 2

    .prologue
    .line 156
    const/4 v0, 0x1

    iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/cg;->disposed:Z

    .line 157
    return-void
.end method

.method public final isDisposed()Z
    .registers 2

    .prologue
    .line 161
    iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/cg;->disposed:Z

    return v0
.end method

.method public final isEmpty()Z
    .registers 2

    .prologue
    .line 146
    iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/cg;->done:Z

    return v0
.end method

.method public final poll()Ljava/lang/Object;
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TT;"
        }
    .end annotation

    .prologue
    const/4 v0, 0x0

    const/4 v2, 0x1

    .line 129
    iget-boolean v1, p0, Lio/reactivex/internal/operators/observable/cg;->done:Z

    if-eqz v1, :cond_7

    .line 141
    :goto_6
    return-object v0

    .line 132
    :cond_7
    iget-boolean v1, p0, Lio/reactivex/internal/operators/observable/cg;->bQh:Z

    if-eqz v1, :cond_16

    .line 133
    iget-object v1, p0, Lio/reactivex/internal/operators/observable/cg;->it:Ljava/util/Iterator;

    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-nez v1, :cond_18

    .line 134
    iput-boolean v2, p0, Lio/reactivex/internal/operators/observable/cg;->done:Z

    goto :goto_6

    .line 138
    :cond_16
    iput-boolean v2, p0, Lio/reactivex/internal/operators/observable/cg;->bQh:Z

    .line 141
    :cond_18
    iget-object v0, p0, Lio/reactivex/internal/operators/observable/cg;->it:Ljava/util/Iterator;

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    const-string v1, "The iterator returned a null value"

    invoke-static {v0, v1}, Lio/reactivex/internal/functions/aj;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    goto :goto_6
.end method

.method public final requestFusion(I)I
    .registers 4

    .prologue
    const/4 v0, 0x1

    .line 119
    and-int/lit8 v1, p1, 0x1

    if-eqz v1, :cond_8

    .line 120
    iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/cg;->bQf:Z

    .line 123
    :goto_7
    return v0

    :cond_8
    const/4 v0, 0x0

    goto :goto_7
.end method