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.
349 lines
8.3 KiB
349 lines
8.3 KiB
.class Lcom/google/common/collect/Multimaps$Keys; |
|
.super Lcom/google/common/collect/AbstractMultiset; |
|
.source "Multimaps.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/google/common/collect/Multimaps; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x8 |
|
name = "Keys" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/google/common/collect/Multimaps$Keys$KeysEntrySet; |
|
} |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Lcom/google/common/collect/AbstractMultiset", |
|
"<TK;>;" |
|
} |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final multimap:Lcom/google/common/collect/Multimap; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Lcom/google/common/collect/Multimap", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/google/common/collect/Multimap;)V |
|
.locals 0 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/collect/Multimap", |
|
"<TK;TV;>;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 1517 |
|
invoke-direct {p0}, Lcom/google/common/collect/AbstractMultiset;-><init>()V |
|
|
|
.line 1518 |
|
iput-object p1, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
.line 1519 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public clear()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 1628 |
|
iget-object v0, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
invoke-interface {v0}, Lcom/google/common/collect/Multimap;->clear()V |
|
|
|
.line 1629 |
|
return-void |
|
.end method |
|
|
|
.method public contains(Ljava/lang/Object;)Z |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 1590 |
|
iget-object v0, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
invoke-interface {v0, p1}, Lcom/google/common/collect/Multimap;->containsKey(Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public count(Ljava/lang/Object;)I |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 1598 |
|
iget-object v0, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
invoke-interface {v0}, Lcom/google/common/collect/Multimap;->asMap()Ljava/util/Map; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Maps;->safeGet(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/util/Collection; |
|
|
|
.line 1599 |
|
if-nez v0, :cond_0 |
|
|
|
const/4 v0, 0x0 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-interface {v0}, Ljava/util/Collection;->size()I |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method createEntrySet()Ljava/util/Set; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/util/Set", |
|
"<", |
|
"Lcom/google/common/collect/Multiset$Entry", |
|
"<TK;>;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 1547 |
|
new-instance v0, Lcom/google/common/collect/Multimaps$Keys$KeysEntrySet; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/Multimaps$Keys$KeysEntrySet;-><init>(Lcom/google/common/collect/Multimaps$Keys;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method distinctElements()I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 1543 |
|
iget-object v0, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
invoke-interface {v0}, Lcom/google/common/collect/Multimap;->asMap()Ljava/util/Map; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {v0}, Ljava/util/Map;->size()I |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public elementSet()Ljava/util/Set; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/util/Set", |
|
"<TK;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 1632 |
|
iget-object v0, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
invoke-interface {v0}, Lcom/google/common/collect/Multimap;->keySet()Ljava/util/Set; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method entryIterator()Ljava/util/Iterator; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/util/Iterator", |
|
"<", |
|
"Lcom/google/common/collect/Multiset$Entry", |
|
"<TK;>;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 1522 |
|
new-instance v0, Lcom/google/common/collect/Multimaps$Keys$1; |
|
|
|
iget-object v1, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
invoke-interface {v1}, Lcom/google/common/collect/Multimap;->asMap()Ljava/util/Map; |
|
|
|
move-result-object v1 |
|
|
|
invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set; |
|
|
|
move-result-object v1 |
|
|
|
invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v1 |
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/common/collect/Multimaps$Keys$1;-><init>(Lcom/google/common/collect/Multimaps$Keys;Ljava/util/Iterator;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public iterator()Ljava/util/Iterator; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/util/Iterator", |
|
"<TK;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 1594 |
|
iget-object v0, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
invoke-interface {v0}, Lcom/google/common/collect/Multimap;->entries()Ljava/util/Collection; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Maps;->keyIterator(Ljava/util/Iterator;)Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public remove(Ljava/lang/Object;I)I |
|
.locals 3 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
const/4 v1, 0x0 |
|
|
|
.line 1603 |
|
const-string v0, "occurrences" |
|
|
|
invoke-static {p2, v0}, Lcom/google/common/collect/CollectPreconditions;->checkNonnegative(ILjava/lang/String;)I |
|
|
|
.line 1604 |
|
if-nez p2, :cond_0 |
|
|
|
.line 1605 |
|
invoke-virtual {p0, p1}, Lcom/google/common/collect/Multimaps$Keys;->count(Ljava/lang/Object;)I |
|
|
|
move-result v0 |
|
|
|
.line 1624 |
|
:goto_0 |
|
return v0 |
|
|
|
.line 1608 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/google/common/collect/Multimaps$Keys;->multimap:Lcom/google/common/collect/Multimap; |
|
|
|
invoke-interface {v0}, Lcom/google/common/collect/Multimap;->asMap()Ljava/util/Map; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Maps;->safeGet(Ljava/util/Map;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/util/Collection; |
|
|
|
.line 1610 |
|
if-nez v0, :cond_1 |
|
|
|
move v0, v1 |
|
|
|
.line 1611 |
|
goto :goto_0 |
|
|
|
.line 1614 |
|
:cond_1 |
|
invoke-interface {v0}, Ljava/util/Collection;->size()I |
|
|
|
move-result v2 |
|
|
|
.line 1615 |
|
if-lt p2, v2, :cond_3 |
|
|
|
.line 1616 |
|
invoke-interface {v0}, Ljava/util/Collection;->clear()V |
|
|
|
:cond_2 |
|
move v0, v2 |
|
|
|
.line 1624 |
|
goto :goto_0 |
|
|
|
.line 1618 |
|
:cond_3 |
|
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
.line 1619 |
|
:goto_1 |
|
if-ge v1, p2, :cond_2 |
|
|
|
.line 1620 |
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
.line 1621 |
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V |
|
|
|
.line 1619 |
|
add-int/lit8 v1, v1, 0x1 |
|
|
|
goto :goto_1 |
|
.end method
|
|
|