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.
315 lines
7.2 KiB
315 lines
7.2 KiB
.class public final Lcom/google/common/cache/RemovalNotification; |
|
.super Ljava/lang/Object; |
|
.source "RemovalNotification.java" |
|
|
|
# interfaces |
|
.implements Ljava/util/Map$Entry; |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
"V:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Ljava/lang/Object;", |
|
"Ljava/util/Map$Entry", |
|
"<TK;TV;>;" |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final serialVersionUID:J |
|
|
|
|
|
# instance fields |
|
.field private final cause:Lcom/google/common/cache/RemovalCause; |
|
|
|
.field private final key:Ljava/lang/Object; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"TK;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end field |
|
|
|
.field private final value:Ljava/lang/Object; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"TV;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end field |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/common/cache/RemovalCause;)V |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.param p2 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TK;TV;", |
|
"Lcom/google/common/cache/RemovalCause;", |
|
")V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 47 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 48 |
|
iput-object p1, p0, Lcom/google/common/cache/RemovalNotification;->key:Ljava/lang/Object; |
|
|
|
.line 49 |
|
iput-object p2, p0, Lcom/google/common/cache/RemovalNotification;->value:Ljava/lang/Object; |
|
|
|
.line 50 |
|
invoke-static {p3}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/google/common/cache/RemovalCause; |
|
|
|
iput-object v0, p0, Lcom/google/common/cache/RemovalNotification;->cause:Lcom/google/common/cache/RemovalCause; |
|
|
|
.line 51 |
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public equals(Ljava/lang/Object;)Z |
|
.locals 3 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
const/4 v0, 0x0 |
|
|
|
.line 81 |
|
instance-of v1, p1, Ljava/util/Map$Entry; |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
.line 82 |
|
check-cast p1, Ljava/util/Map$Entry; |
|
|
|
.line 83 |
|
invoke-virtual {p0}, Lcom/google/common/cache/RemovalNotification;->getKey()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; |
|
|
|
move-result-object v2 |
|
|
|
invoke-static {v1, v2}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
invoke-virtual {p0}, Lcom/google/common/cache/RemovalNotification;->getValue()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; |
|
|
|
move-result-object v2 |
|
|
|
invoke-static {v1, v2}, Lcom/google/common/base/Objects;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
.line 86 |
|
:cond_0 |
|
return v0 |
|
.end method |
|
|
|
.method public getCause()Lcom/google/common/cache/RemovalCause; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 57 |
|
iget-object v0, p0, Lcom/google/common/cache/RemovalNotification;->cause:Lcom/google/common/cache/RemovalCause; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public getKey()Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()TK;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
|
|
.prologue |
|
.line 69 |
|
iget-object v0, p0, Lcom/google/common/cache/RemovalNotification;->key:Ljava/lang/Object; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public getValue()Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()TV;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
|
|
.prologue |
|
.line 73 |
|
iget-object v0, p0, Lcom/google/common/cache/RemovalNotification;->value:Ljava/lang/Object; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public hashCode()I |
|
.locals 3 |
|
|
|
.prologue |
|
const/4 v0, 0x0 |
|
|
|
.line 90 |
|
invoke-virtual {p0}, Lcom/google/common/cache/RemovalNotification;->getKey()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
.line 91 |
|
invoke-virtual {p0}, Lcom/google/common/cache/RemovalNotification;->getValue()Ljava/lang/Object; |
|
|
|
move-result-object v2 |
|
|
|
.line 92 |
|
if-nez v1, :cond_0 |
|
|
|
move v1, v0 |
|
|
|
:goto_0 |
|
if-nez v2, :cond_1 |
|
|
|
:goto_1 |
|
xor-int/2addr v0, v1 |
|
|
|
return v0 |
|
|
|
:cond_0 |
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I |
|
|
|
move-result v1 |
|
|
|
goto :goto_0 |
|
|
|
:cond_1 |
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I |
|
|
|
move-result v0 |
|
|
|
goto :goto_1 |
|
.end method |
|
|
|
.method public final setValue(Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TV;)TV;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 77 |
|
new-instance v0, Ljava/lang/UnsupportedOperationException; |
|
|
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V |
|
|
|
throw v0 |
|
.end method |
|
|
|
.method public toString()Ljava/lang/String; |
|
.locals 2 |
|
|
|
.prologue |
|
.line 99 |
|
new-instance v0, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
invoke-virtual {p0}, Lcom/google/common/cache/RemovalNotification;->getKey()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, "=" |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {p0}, Lcom/google/common/cache/RemovalNotification;->getValue()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public wasEvicted()Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 65 |
|
iget-object v0, p0, Lcom/google/common/cache/RemovalNotification;->cause:Lcom/google/common/cache/RemovalCause; |
|
|
|
invoke-virtual {v0}, Lcom/google/common/cache/RemovalCause;->wasEvicted()Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method
|
|
|