今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
3.3 KiB

.class Lcom/google/common/collect/ImmutableMultiset$1;
.super Lcom/google/common/collect/UnmodifiableIterator;
.source "ImmutableMultiset.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/common/collect/ImmutableMultiset;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/UnmodifiableIterator",
"<TE;>;"
}
.end annotation
# instance fields
.field element:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TE;"
}
.end annotation
.end field
.field remaining:I
.field final synthetic this$0:Lcom/google/common/collect/ImmutableMultiset;
.field final synthetic val$entryIterator:Ljava/util/Iterator;
# direct methods
.method constructor <init>(Lcom/google/common/collect/ImmutableMultiset;Ljava/util/Iterator;)V
.locals 0
.prologue
.line 240
iput-object p1, p0, Lcom/google/common/collect/ImmutableMultiset$1;->this$0:Lcom/google/common/collect/ImmutableMultiset;
iput-object p2, p0, Lcom/google/common/collect/ImmutableMultiset$1;->val$entryIterator:Ljava/util/Iterator;
invoke-direct {p0}, Lcom/google/common/collect/UnmodifiableIterator;-><init>()V
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
.prologue
.line 246
iget v0, p0, Lcom/google/common/collect/ImmutableMultiset$1;->remaining:I
if-gtz v0, :cond_0
iget-object v0, p0, Lcom/google/common/collect/ImmutableMultiset$1;->val$entryIterator:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_1
:cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_1
const/4 v0, 0x0
goto :goto_0
.end method
.method public next()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TE;"
}
.end annotation
.prologue
.line 251
iget v0, p0, Lcom/google/common/collect/ImmutableMultiset$1;->remaining:I
if-gtz v0, :cond_0
.line 252
iget-object v0, p0, Lcom/google/common/collect/ImmutableMultiset$1;->val$entryIterator:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/collect/Multiset$Entry;
.line 253
invoke-interface {v0}, Lcom/google/common/collect/Multiset$Entry;->getElement()Ljava/lang/Object;
move-result-object v1
iput-object v1, p0, Lcom/google/common/collect/ImmutableMultiset$1;->element:Ljava/lang/Object;
.line 254
invoke-interface {v0}, Lcom/google/common/collect/Multiset$Entry;->getCount()I
move-result v0
iput v0, p0, Lcom/google/common/collect/ImmutableMultiset$1;->remaining:I
.line 256
:cond_0
iget v0, p0, Lcom/google/common/collect/ImmutableMultiset$1;->remaining:I
add-int/lit8 v0, v0, -0x1
iput v0, p0, Lcom/google/common/collect/ImmutableMultiset$1;->remaining:I
.line 257
iget-object v0, p0, Lcom/google/common/collect/ImmutableMultiset$1;->element:Ljava/lang/Object;
return-object v0
.end method