.class Lcom/google/common/collect/ImmutableList$ReverseImmutableList; .super Lcom/google/common/collect/ImmutableList; .source "ImmutableList.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/collect/ImmutableList; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "ReverseImmutableList" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lcom/google/common/collect/ImmutableList<", "TE;>;" } .end annotation # instance fields .field private final transient forwardList:Lcom/google/common/collect/ImmutableList; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableList<", "TE;>;" } .end annotation .end field # direct methods .method public constructor (Lcom/google/common/collect/ImmutableList;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/collect/ImmutableList<", "TE;>;)V" } .end annotation .line 1 invoke-direct {p0}, Lcom/google/common/collect/ImmutableList;->()V .line 2 iput-object p1, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; return-void .end method .method private reverseIndex(I)I .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 sub-int/2addr v0, p1 return v0 .end method .method private reversePosition(I)I .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->size()I move-result v0 sub-int/2addr v0, p1 return v0 .end method # virtual methods .method public contains(Ljava/lang/Object;)Z .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0, p1}, Lcom/google/common/collect/ImmutableList;->contains(Ljava/lang/Object;)Z move-result p1 return p1 .end method .method public get(I)Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(I)TE;" } .end annotation .line 1 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->size()I move-result v0 invoke-static {p1, v0}, Lcom/google/common/base/Preconditions;->checkElementIndex(II)I .line 2 iget-object v0, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; invoke-direct {p0, p1}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->reverseIndex(I)I move-result p1 invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object p1 return-object p1 .end method .method public indexOf(Ljava/lang/Object;)I .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0, p1}, Lcom/google/common/collect/ImmutableList;->lastIndexOf(Ljava/lang/Object;)I move-result p1 if-ltz p1, :cond_0 .line 2 invoke-direct {p0, p1}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->reverseIndex(I)I move-result p1 goto :goto_0 :cond_0 const/4 p1, -0x1 :goto_0 return p1 .end method .method public isPartialView()Z .locals 1 .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0}, Lcom/google/common/collect/ImmutableCollection;->isPartialView()Z move-result v0 return v0 .end method .method public bridge synthetic iterator()Ljava/util/Iterator; .locals 1 .line 1 invoke-super {p0}, Lcom/google/common/collect/ImmutableList;->iterator()Lcom/google/common/collect/UnmodifiableIterator; move-result-object v0 return-object v0 .end method .method public lastIndexOf(Ljava/lang/Object;)I .locals 1 .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0, p1}, Lcom/google/common/collect/ImmutableList;->indexOf(Ljava/lang/Object;)I move-result p1 if-ltz p1, :cond_0 .line 2 invoke-direct {p0, p1}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->reverseIndex(I)I move-result p1 goto :goto_0 :cond_0 const/4 p1, -0x1 :goto_0 return p1 .end method .method public bridge synthetic listIterator()Ljava/util/ListIterator; .locals 1 .line 1 invoke-super {p0}, Lcom/google/common/collect/ImmutableList;->listIterator()Lcom/google/common/collect/UnmodifiableListIterator; move-result-object v0 return-object v0 .end method .method public bridge synthetic listIterator(I)Ljava/util/ListIterator; .locals 0 .line 2 invoke-super {p0, p1}, Lcom/google/common/collect/ImmutableList;->listIterator(I)Lcom/google/common/collect/UnmodifiableListIterator; move-result-object p1 return-object p1 .end method .method public reverse()Lcom/google/common/collect/ImmutableList; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/ImmutableList<", "TE;>;" } .end annotation .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; return-object v0 .end method .method public size()I .locals 1 .line 1 iget-object v0, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; invoke-virtual {v0}, Ljava/util/AbstractCollection;->size()I move-result v0 return v0 .end method .method public subList(II)Lcom/google/common/collect/ImmutableList; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(II)", "Lcom/google/common/collect/ImmutableList<", "TE;>;" } .end annotation .line 2 invoke-virtual {p0}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->size()I move-result v0 invoke-static {p1, p2, v0}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V .line 3 iget-object v0, p0, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->forwardList:Lcom/google/common/collect/ImmutableList; invoke-direct {p0, p2}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->reversePosition(I)I move-result p2 invoke-direct {p0, p1}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->reversePosition(I)I move-result p1 invoke-virtual {v0, p2, p1}, Lcom/google/common/collect/ImmutableList;->subList(II)Lcom/google/common/collect/ImmutableList; move-result-object p1 invoke-virtual {p1}, Lcom/google/common/collect/ImmutableList;->reverse()Lcom/google/common/collect/ImmutableList; move-result-object p1 return-object p1 .end method .method public bridge synthetic subList(II)Ljava/util/List; .locals 0 .line 1 invoke-virtual {p0, p1, p2}, Lcom/google/common/collect/ImmutableList$ReverseImmutableList;->subList(II)Lcom/google/common/collect/ImmutableList; move-result-object p1 return-object p1 .end method