.class final Lcom/google/common/cache/LocalCache$AccessQueue; .super Ljava/util/AbstractQueue; .source "LocalCache.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/cache/LocalCache; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x18 name = "AccessQueue" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/util/AbstractQueue", "<", "Lcom/google/common/cache/LocalCache$ReferenceEntry", ";>;" } .end annotation # instance fields .field final head:Lcom/google/common/cache/LocalCache$ReferenceEntry; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/cache/LocalCache$ReferenceEntry", ";" } .end annotation .end field # direct methods .method constructor ()V .locals 1 .prologue .line 3728 invoke-direct {p0}, Ljava/util/AbstractQueue;->()V .line 3729 new-instance v0, Lcom/google/common/cache/LocalCache$AccessQueue$1; invoke-direct {v0, p0}, Lcom/google/common/cache/LocalCache$AccessQueue$1;->(Lcom/google/common/cache/LocalCache$AccessQueue;)V iput-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; return-void .end method # virtual methods .method public clear()V .locals 2 .prologue .line 3831 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-interface {v0}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 .line 3832 :goto_0 iget-object v1, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; if-eq v0, v1, :cond_0 .line 3833 invoke-interface {v0}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v1 .line 3834 invoke-static {v0}, Lcom/google/common/cache/LocalCache;->nullifyAccessOrder(Lcom/google/common/cache/LocalCache$ReferenceEntry;)V move-object v0, v1 .line 3836 goto :goto_0 .line 3838 :cond_0 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; iget-object v1, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-interface {v0, v1}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->setNextInAccessQueue(Lcom/google/common/cache/LocalCache$ReferenceEntry;)V .line 3839 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; iget-object v1, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-interface {v0, v1}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->setPreviousInAccessQueue(Lcom/google/common/cache/LocalCache$ReferenceEntry;)V .line 3840 return-void .end method .method public contains(Ljava/lang/Object;)Z .locals 2 .prologue .line 3810 check-cast p1, Lcom/google/common/cache/LocalCache$ReferenceEntry; .line 3811 invoke-interface {p1}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 sget-object v1, Lcom/google/common/cache/LocalCache$NullEntry;->INSTANCE:Lcom/google/common/cache/LocalCache$NullEntry; if-eq v0, v1, :cond_0 const/4 v0, 0x1 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public isEmpty()Z .locals 2 .prologue .line 3816 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-interface {v0}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 iget-object v1, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; if-ne v0, v1, :cond_0 const/4 v0, 0x1 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public iterator()Ljava/util/Iterator; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Iterator", "<", "Lcom/google/common/cache/LocalCache$ReferenceEntry", ";>;" } .end annotation .prologue .line 3844 new-instance v0, Lcom/google/common/cache/LocalCache$AccessQueue$2; invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$AccessQueue;->peek()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v1 invoke-direct {v0, p0, v1}, Lcom/google/common/cache/LocalCache$AccessQueue$2;->(Lcom/google/common/cache/LocalCache$AccessQueue;Lcom/google/common/cache/LocalCache$ReferenceEntry;)V return-object v0 .end method .method public offer(Lcom/google/common/cache/LocalCache$ReferenceEntry;)Z .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/cache/LocalCache$ReferenceEntry", ";)Z" } .end annotation .prologue .line 3769 invoke-interface {p1}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getPreviousInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 invoke-interface {p1}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v1 invoke-static {v0, v1}, Lcom/google/common/cache/LocalCache;->connectAccessOrder(Lcom/google/common/cache/LocalCache$ReferenceEntry;Lcom/google/common/cache/LocalCache$ReferenceEntry;)V .line 3772 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-interface {v0}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getPreviousInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 invoke-static {v0, p1}, Lcom/google/common/cache/LocalCache;->connectAccessOrder(Lcom/google/common/cache/LocalCache$ReferenceEntry;Lcom/google/common/cache/LocalCache$ReferenceEntry;)V .line 3773 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-static {p1, v0}, Lcom/google/common/cache/LocalCache;->connectAccessOrder(Lcom/google/common/cache/LocalCache$ReferenceEntry;Lcom/google/common/cache/LocalCache$ReferenceEntry;)V .line 3775 const/4 v0, 0x1 return v0 .end method .method public bridge synthetic offer(Ljava/lang/Object;)Z .locals 1 .prologue .line 3728 check-cast p1, Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-virtual {p0, p1}, Lcom/google/common/cache/LocalCache$AccessQueue;->offer(Lcom/google/common/cache/LocalCache$ReferenceEntry;)Z move-result v0 return v0 .end method .method public peek()Lcom/google/common/cache/LocalCache$ReferenceEntry; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/cache/LocalCache$ReferenceEntry", ";" } .end annotation .prologue .line 3780 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-interface {v0}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 .line 3781 iget-object v1, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; if-ne v0, v1, :cond_0 const/4 v0, 0x0 :cond_0 return-object v0 .end method .method public bridge synthetic peek()Ljava/lang/Object; .locals 1 .prologue .line 3728 invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$AccessQueue;->peek()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 return-object v0 .end method .method public poll()Lcom/google/common/cache/LocalCache$ReferenceEntry; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/cache/LocalCache$ReferenceEntry", ";" } .end annotation .prologue .line 3786 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-interface {v0}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 .line 3787 iget-object v1, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; if-ne v0, v1, :cond_0 .line 3788 const/4 v0, 0x0 .line 3792 :goto_0 return-object v0 .line 3791 :cond_0 invoke-virtual {p0, v0}, Lcom/google/common/cache/LocalCache$AccessQueue;->remove(Ljava/lang/Object;)Z goto :goto_0 .end method .method public bridge synthetic poll()Ljava/lang/Object; .locals 1 .prologue .line 3728 invoke-virtual {p0}, Lcom/google/common/cache/LocalCache$AccessQueue;->poll()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 return-object v0 .end method .method public remove(Ljava/lang/Object;)Z .locals 2 .prologue .line 3798 check-cast p1, Lcom/google/common/cache/LocalCache$ReferenceEntry; .line 3799 invoke-interface {p1}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getPreviousInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 .line 3800 invoke-interface {p1}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v1 .line 3801 invoke-static {v0, v1}, Lcom/google/common/cache/LocalCache;->connectAccessOrder(Lcom/google/common/cache/LocalCache$ReferenceEntry;Lcom/google/common/cache/LocalCache$ReferenceEntry;)V .line 3802 invoke-static {p1}, Lcom/google/common/cache/LocalCache;->nullifyAccessOrder(Lcom/google/common/cache/LocalCache$ReferenceEntry;)V .line 3804 sget-object v0, Lcom/google/common/cache/LocalCache$NullEntry;->INSTANCE:Lcom/google/common/cache/LocalCache$NullEntry; if-eq v1, v0, :cond_0 const/4 v0, 0x1 :goto_0 return v0 :cond_0 const/4 v0, 0x0 goto :goto_0 .end method .method public size()I .locals 3 .prologue .line 3821 const/4 v1, 0x0 .line 3822 iget-object v0, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; invoke-interface {v0}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 :goto_0 iget-object v2, p0, Lcom/google/common/cache/LocalCache$AccessQueue;->head:Lcom/google/common/cache/LocalCache$ReferenceEntry; if-eq v0, v2, :cond_0 .line 3824 add-int/lit8 v1, v1, 0x1 .line 3823 invoke-interface {v0}, Lcom/google/common/cache/LocalCache$ReferenceEntry;->getNextInAccessQueue()Lcom/google/common/cache/LocalCache$ReferenceEntry; move-result-object v0 goto :goto_0 .line 3826 :cond_0 return v1 .end method