HttpUpdateNotifyManager.smali

.class public Lokhttp3/HttpUpdateNotifyManager;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static final listenerList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lokhttp3/HttpUpdateListener;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lokhttp3/HttpUpdateNotifyManager;->listenerList:Ljava/util/List;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static addListener(Lokhttp3/HttpUpdateListener;)V
    .registers 2

    sget-object v0, Lokhttp3/HttpUpdateNotifyManager;->listenerList:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public static notifyHttpUpdate(Ljava/lang/String;)V
    .registers 3

    .line 1
    sget-object v0, Lokhttp3/HttpUpdateNotifyManager;->listenerList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_16

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

    move-result-object v1

    check-cast v1, Lokhttp3/HttpUpdateListener;

    .line 2
    invoke-interface {v1, p0}, Lokhttp3/HttpUpdateListener;->onHttpUpdate(Ljava/lang/String;)V

    goto :goto_6

    :cond_16
    return-void
.end method

.method public static removeListener(Lokhttp3/HttpUpdateListener;)V
    .registers 2

    sget-object v0, Lokhttp3/HttpUpdateNotifyManager;->listenerList:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    return-void
.end method