tmap/smali_classes3/com/google/common/collect/ConcurrentHashMultiset$2.smali
2022-06-10 21:38:30 +09:00

149 lines
4.0 KiB
Smali

.class Lcom/google/common/collect/ConcurrentHashMultiset$2;
.super Lcom/google/common/collect/AbstractIterator;
.source "ConcurrentHashMultiset.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/google/common/collect/ConcurrentHashMultiset;->entryIterator()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/AbstractIterator<",
"Lcom/google/common/collect/Multiset$Entry<",
"TE;>;>;"
}
.end annotation
# instance fields
.field private final mapEntries:Ljava/util/Iterator;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TE;",
"Ljava/util/concurrent/atomic/AtomicInteger;",
">;>;"
}
.end annotation
.end field
.field public final synthetic this$0:Lcom/google/common/collect/ConcurrentHashMultiset;
# direct methods
.method public constructor <init>(Lcom/google/common/collect/ConcurrentHashMultiset;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/google/common/collect/ConcurrentHashMultiset$2;->this$0:Lcom/google/common/collect/ConcurrentHashMultiset;
invoke-direct {p0}, Lcom/google/common/collect/AbstractIterator;-><init>()V
.line 2
invoke-static {p1}, Lcom/google/common/collect/ConcurrentHashMultiset;->access$100(Lcom/google/common/collect/ConcurrentHashMultiset;)Ljava/util/concurrent/ConcurrentMap;
move-result-object p1
invoke-interface {p1}, Ljava/util/concurrent/ConcurrentMap;->entrySet()Ljava/util/Set;
move-result-object p1
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p1
iput-object p1, p0, Lcom/google/common/collect/ConcurrentHashMultiset$2;->mapEntries:Ljava/util/Iterator;
return-void
.end method
# virtual methods
.method public computeNext()Lcom/google/common/collect/Multiset$Entry;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/Multiset$Entry<",
"TE;>;"
}
.end annotation
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.line 2
:cond_0
iget-object v0, p0, Lcom/google/common/collect/ConcurrentHashMultiset$2;->mapEntries:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-nez v0, :cond_1
.line 3
invoke-virtual {p0}, Lcom/google/common/collect/AbstractIterator;->endOfData()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/common/collect/Multiset$Entry;
return-object v0
.line 4
:cond_1
iget-object v0, p0, Lcom/google/common/collect/ConcurrentHashMultiset$2;->mapEntries:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/Map$Entry;
.line 5
invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/util/concurrent/atomic/AtomicInteger;
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
move-result v1
if-eqz v1, :cond_0
.line 6
invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v0
invoke-static {v0, v1}, Lcom/google/common/collect/Multisets;->immutableEntry(Ljava/lang/Object;I)Lcom/google/common/collect/Multiset$Entry;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic computeNext()Ljava/lang/Object;
.locals 1
.annotation runtime Ljavax/annotation/CheckForNull;
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/common/collect/ConcurrentHashMultiset$2;->computeNext()Lcom/google/common/collect/Multiset$Entry;
move-result-object v0
return-object v0
.end method