143 lines
3.5 KiB
Smali
143 lines
3.5 KiB
Smali
.class Lcom/google/common/collect/Sets$SubSet$1;
|
|
.super Lcom/google/common/collect/UnmodifiableIterator;
|
|
.source "Sets.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/google/common/collect/Sets$SubSet;->iterator()Ljava/util/Iterator;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/collect/UnmodifiableIterator<",
|
|
"TE;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final elements:Lcom/google/common/collect/ImmutableList;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/collect/ImmutableList<",
|
|
"TE;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public remainingSetBits:I
|
|
|
|
.field public final synthetic this$0:Lcom/google/common/collect/Sets$SubSet;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/common/collect/Sets$SubSet;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/common/collect/Sets$SubSet$1;->this$0:Lcom/google/common/collect/Sets$SubSet;
|
|
|
|
invoke-direct {p0}, Lcom/google/common/collect/UnmodifiableIterator;-><init>()V
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lcom/google/common/collect/Sets$SubSet;->access$100(Lcom/google/common/collect/Sets$SubSet;)Lcom/google/common/collect/ImmutableMap;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableMap;->keySet()Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableSet;->asList()Lcom/google/common/collect/ImmutableList;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/common/collect/Sets$SubSet$1;->elements:Lcom/google/common/collect/ImmutableList;
|
|
|
|
.line 3
|
|
invoke-static {p1}, Lcom/google/common/collect/Sets$SubSet;->access$200(Lcom/google/common/collect/Sets$SubSet;)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lcom/google/common/collect/Sets$SubSet$1;->remainingSetBits:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public hasNext()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/common/collect/Sets$SubSet$1;->remainingSetBits:I
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public next()Ljava/lang/Object;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TE;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/common/collect/Sets$SubSet$1;->remainingSetBits:I
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->numberOfTrailingZeros(I)I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0x20
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 2
|
|
iget v1, p0, Lcom/google/common/collect/Sets$SubSet$1;->remainingSetBits:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
shl-int/2addr v2, v0
|
|
|
|
not-int v2, v2
|
|
|
|
and-int/2addr v1, v2
|
|
|
|
iput v1, p0, Lcom/google/common/collect/Sets$SubSet$1;->remainingSetBits:I
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/common/collect/Sets$SubSet$1;->elements:Lcom/google/common/collect/ImmutableList;
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
.line 4
|
|
:cond_0
|
|
new-instance v0, Ljava/util/NoSuchElementException;
|
|
|
|
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|