Rabbit-R1/android (non root)/smali/smali_classes2/com/google/common/cache/LocalCache$EntrySet.smali
2024-05-21 17:08:36 -04:00

161 lines
3.8 KiB
Smali

.class final Lcom/google/common/cache/LocalCache$EntrySet;
.super Lcom/google/common/cache/LocalCache$AbstractCacheSet;
.source "LocalCache.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/cache/LocalCache;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x10
name = "EntrySet"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/cache/LocalCache<",
"TK;TV;>.AbstractCacheSet<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
# instance fields
.field final synthetic this$0:Lcom/google/common/cache/LocalCache;
# direct methods
.method constructor <init>(Lcom/google/common/cache/LocalCache;)V
.locals 0
iput-object p1, p0, Lcom/google/common/cache/LocalCache$EntrySet;->this$0:Lcom/google/common/cache/LocalCache;
.line 4464
invoke-direct {p0, p1}, Lcom/google/common/cache/LocalCache$AbstractCacheSet;-><init>(Lcom/google/common/cache/LocalCache;)V
return-void
.end method
# virtual methods
.method public contains(Ljava/lang/Object;)Z
.locals 3
.line 4473
instance-of v0, p1, Ljava/util/Map$Entry;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
.line 4476
:cond_0
check-cast p1, Ljava/util/Map$Entry;
.line 4477
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v0
if-nez v0, :cond_1
return v1
:cond_1
iget-object v2, p0, Lcom/google/common/cache/LocalCache$EntrySet;->this$0:Lcom/google/common/cache/LocalCache;
.line 4481
invoke-virtual {v2, v0}, Lcom/google/common/cache/LocalCache;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_2
iget-object p0, p0, Lcom/google/common/cache/LocalCache$EntrySet;->this$0:Lcom/google/common/cache/LocalCache;
.line 4483
iget-object p0, p0, Lcom/google/common/cache/LocalCache;->valueEquivalence:Lcom/google/common/base/Equivalence;
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object p1
invoke-virtual {p0, p1, v0}, Lcom/google/common/base/Equivalence;->equivalent(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
const/4 v1, 0x1
:cond_2
return v1
.end method
.method public iterator()Ljava/util/Iterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
.line 4468
new-instance v0, Lcom/google/common/cache/LocalCache$EntryIterator;
iget-object p0, p0, Lcom/google/common/cache/LocalCache$EntrySet;->this$0:Lcom/google/common/cache/LocalCache;
invoke-direct {v0, p0}, Lcom/google/common/cache/LocalCache$EntryIterator;-><init>(Lcom/google/common/cache/LocalCache;)V
return-object v0
.end method
.method public remove(Ljava/lang/Object;)Z
.locals 2
.line 4488
instance-of v0, p1, Ljava/util/Map$Entry;
const/4 v1, 0x0
if-nez v0, :cond_0
return v1
.line 4491
:cond_0
check-cast p1, Ljava/util/Map$Entry;
.line 4492
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_1
iget-object p0, p0, Lcom/google/common/cache/LocalCache$EntrySet;->this$0:Lcom/google/common/cache/LocalCache;
.line 4493
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object p1
invoke-virtual {p0, v0, p1}, Lcom/google/common/cache/LocalCache;->remove(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_1
const/4 v1, 0x1
:cond_1
return v1
.end method