CachedJobQueue$Cache$DelayUntil.smali

.class Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "DelayUntil"
.end annotation


# instance fields
.field public excludeGroups:Ljava/util/Collection;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public hasNetwork:Z

.field public value:Ljava/lang/Long;


# direct methods
.method private constructor <init>(ZLjava/lang/Long;Ljava/util/Collection;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(Z",
            "Ljava/lang/Long;",
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

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

    .line 3
    iput-object p2, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->value:Ljava/lang/Long;

    .line 4
    iput-boolean p1, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->hasNetwork:Z

    .line 5
    iput-object p3, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->excludeGroups:Ljava/util/Collection;

    return-void
.end method

.method public synthetic constructor <init>(ZLjava/lang/Long;Ljava/util/Collection;Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$1;)V
    .registers 5

    .line 1
    invoke-direct {p0, p1, p2, p3}, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;-><init>(ZLjava/lang/Long;Ljava/util/Collection;)V

    return-void
.end method

.method public static synthetic access$200(Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;ZLjava/util/Collection;)Z
    .registers 3

    invoke-direct {p0, p1, p2}, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->isValid(ZLjava/util/Collection;)Z

    move-result p0

    return p0
.end method

.method private isValid(ZLjava/util/Collection;)Z
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(Z",
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;)Z"
        }
    .end annotation

    iget-boolean v0, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->hasNetwork:Z

    if-ne v0, p1, :cond_c

    invoke-direct {p0, p2}, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->validateExcludes(Ljava/util/Collection;)Z

    move-result p1

    if-eqz p1, :cond_c

    const/4 p1, 0x1

    goto :goto_d

    :cond_c
    const/4 p1, 0x0

    :goto_d
    return p1
.end method

.method private validateExcludes(Ljava/util/Collection;)Z
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;)Z"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->excludeGroups:Ljava/util/Collection;

    const/4 v1, 0x1

    if-ne v0, p1, :cond_6

    return v1

    :cond_6
    const/4 v2, 0x0

    if-eqz v0, :cond_39

    if-nez p1, :cond_c

    goto :goto_39

    .line 2
    :cond_c
    invoke-interface {v0}, Ljava/util/Collection;->size()I

    move-result v0

    invoke-interface {p1}, Ljava/util/Collection;->size()I

    move-result v3

    if-eq v0, v3, :cond_17

    return v2

    .line 3
    :cond_17
    iget-object v0, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->excludeGroups:Ljava/util/Collection;

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

    move-result-object v0

    .line 4
    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object p1

    .line 5
    :cond_21
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_38

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

    move-result-object v3

    check-cast v3, Ljava/lang/String;

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

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_21

    return v2

    :cond_38
    return v1

    :cond_39
    :goto_39
    return v2
.end method


# virtual methods
.method public set(ZLjava/lang/Long;Ljava/util/Collection;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(Z",
            "Ljava/lang/Long;",
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 1
    iput-object p2, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->value:Ljava/lang/Long;

    .line 2
    iput-boolean p1, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->hasNetwork:Z

    .line 3
    iput-object p3, p0, Lcom/path/android/jobqueue/cachedQueue/CachedJobQueue$Cache$DelayUntil;->excludeGroups:Ljava/util/Collection;

    return-void
.end method