.class final Lcom/google/common/collect/Lists$StringAsImmutableList; .super Lcom/google/common/collect/ImmutableList; .source "Lists.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/collect/Lists; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "StringAsImmutableList" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/ImmutableList<", "Ljava/lang/Character;", ">;" } .end annotation # instance fields .field private final string:Ljava/lang/String; # direct methods .method public constructor (Ljava/lang/String;)V .locals 0 .line 1 invoke-direct {p0}, Lcom/google/common/collect/ImmutableList;->()V .line 2 iput-object p1, p0, Lcom/google/common/collect/Lists$StringAsImmutableList;->string:Ljava/lang/String; return-void .end method # virtual methods .method public get(I)Ljava/lang/Character; .locals 1 .line 2 invoke-virtual {p0}, Lcom/google/common/collect/Lists$StringAsImmutableList;->size()I move-result v0 invoke-static {p1, v0}, Lcom/google/common/base/Preconditions;->checkElementIndex(II)I .line 3 iget-object v0, p0, Lcom/google/common/collect/Lists$StringAsImmutableList;->string:Ljava/lang/String; invoke-virtual {v0, p1}, Ljava/lang/String;->charAt(I)C move-result p1 invoke-static {p1}, Ljava/lang/Character;->valueOf(C)Ljava/lang/Character; move-result-object p1 return-object p1 .end method .method public bridge synthetic get(I)Ljava/lang/Object; .locals 0 .line 1 invoke-virtual {p0, p1}, Lcom/google/common/collect/Lists$StringAsImmutableList;->get(I)Ljava/lang/Character; 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 instance-of v0, p1, Ljava/lang/Character; if-eqz v0, :cond_0 iget-object v0, p0, Lcom/google/common/collect/Lists$StringAsImmutableList;->string:Ljava/lang/String; check-cast p1, Ljava/lang/Character; invoke-virtual {p1}, Ljava/lang/Character;->charValue()C move-result p1 invoke-virtual {v0, p1}, Ljava/lang/String;->indexOf(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 const/4 v0, 0x0 return 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 instance-of v0, p1, Ljava/lang/Character; if-eqz v0, :cond_0 iget-object v0, p0, Lcom/google/common/collect/Lists$StringAsImmutableList;->string:Ljava/lang/String; check-cast p1, Ljava/lang/Character; invoke-virtual {p1}, Ljava/lang/Character;->charValue()C move-result p1 invoke-virtual {v0, p1}, Ljava/lang/String;->lastIndexOf(I)I move-result p1 goto :goto_0 :cond_0 const/4 p1, -0x1 :goto_0 return p1 .end method .method public size()I .locals 1 .line 1 iget-object v0, p0, Lcom/google/common/collect/Lists$StringAsImmutableList;->string:Ljava/lang/String; invoke-virtual {v0}, Ljava/lang/String;->length()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<", "Ljava/lang/Character;", ">;" } .end annotation .line 2 invoke-virtual {p0}, Lcom/google/common/collect/Lists$StringAsImmutableList;->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/Lists$StringAsImmutableList;->string:Ljava/lang/String; invoke-virtual {v0, p1, p2}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object p1 invoke-static {p1}, Lcom/google/common/collect/Lists;->charactersOf(Ljava/lang/String;)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/Lists$StringAsImmutableList;->subList(II)Lcom/google/common/collect/ImmutableList; move-result-object p1 return-object p1 .end method