431 lines
10 KiB
Smali
431 lines
10 KiB
Smali
|
.class public Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "SoftReferenceQueue.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/util/Queue;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/lang/Object;",
|
||
|
"Ljava/util/Queue<",
|
||
|
"Lcom/esotericsoftware/kryo/Kryo;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public delegate:Ljava/util/Queue;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/Queue<",
|
||
|
"Ljava/lang/ref/SoftReference<",
|
||
|
"Lcom/esotericsoftware/kryo/Kryo;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Ljava/util/Queue;)V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Queue<",
|
||
|
"*>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public add(Lcom/esotericsoftware/kryo/Kryo;)Z
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
new-instance v1, Ljava/lang/ref/SoftReference;
|
||
|
|
||
|
invoke-direct {v1, p1}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-interface {v0, v1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic add(Ljava/lang/Object;)Z
|
||
|
.locals 0
|
||
|
|
||
|
check-cast p1, Lcom/esotericsoftware/kryo/Kryo;
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->add(Lcom/esotericsoftware/kryo/Kryo;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public addAll(Ljava/util/Collection;)Z
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Collection<",
|
||
|
"+",
|
||
|
"Lcom/esotericsoftware/kryo/Kryo;",
|
||
|
">;)Z"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public clear()V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Queue;->clear()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public contains(Ljava/lang/Object;)Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
invoke-interface {v0, p1}, Ljava/util/Queue;->contains(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public containsAll(Ljava/util/Collection;)Z
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Collection<",
|
||
|
"*>;)Z"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public element()Lcom/esotericsoftware/kryo/Kryo;
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic element()Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->element()Lcom/esotericsoftware/kryo/Kryo;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public isEmpty()Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Queue;->isEmpty()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public iterator()Ljava/util/Iterator;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/Iterator<",
|
||
|
"Lcom/esotericsoftware/kryo/Kryo;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public offer(Lcom/esotericsoftware/kryo/Kryo;)Z
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
new-instance v1, Ljava/lang/ref/SoftReference;
|
||
|
|
||
|
invoke-direct {v1, p1}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-interface {v0, v1}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic offer(Ljava/lang/Object;)Z
|
||
|
.locals 0
|
||
|
|
||
|
check-cast p1, Lcom/esotericsoftware/kryo/Kryo;
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->offer(Lcom/esotericsoftware/kryo/Kryo;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
return p1
|
||
|
.end method
|
||
|
|
||
|
.method public peek()Lcom/esotericsoftware/kryo/Kryo;
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic peek()Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->peek()Lcom/esotericsoftware/kryo/Kryo;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public poll()Lcom/esotericsoftware/kryo/Kryo;
|
||
|
.locals 1
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Queue;->poll()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Ljava/lang/ref/SoftReference;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/esotericsoftware/kryo/Kryo;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic poll()Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->poll()Lcom/esotericsoftware/kryo/Kryo;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public remove()Lcom/esotericsoftware/kryo/Kryo;
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic remove()Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0}, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->remove()Lcom/esotericsoftware/kryo/Kryo;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public remove(Ljava/lang/Object;)Z
|
||
|
.locals 0
|
||
|
|
||
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public removeAll(Ljava/util/Collection;)Z
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Collection<",
|
||
|
"*>;)Z"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public retainAll(Ljava/util/Collection;)Z
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/Collection<",
|
||
|
"*>;)Z"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public size()I
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;->delegate:Ljava/util/Queue;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Queue;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public toArray()[Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">([TT;)[TT;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
||
|
|
||
|
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-class v1, Lcom/esotericsoftware/kryo/pool/SoftReferenceQueue;
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-super {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|