223 lines
5.6 KiB
Smali
223 lines
5.6 KiB
Smali
.class Lcom/google/common/collect/ImmutableList$SubList;
|
|
.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 = 0x1
|
|
name = "SubList"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/google/common/collect/ImmutableList<",
|
|
"TE;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final transient length:I
|
|
|
|
.field public final transient offset:I
|
|
|
|
.field public final synthetic this$0:Lcom/google/common/collect/ImmutableList;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/common/collect/ImmutableList;II)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/common/collect/ImmutableList$SubList;->this$0:Lcom/google/common/collect/ImmutableList;
|
|
|
|
invoke-direct {p0}, Lcom/google/common/collect/ImmutableList;-><init>()V
|
|
|
|
.line 2
|
|
iput p2, p0, Lcom/google/common/collect/ImmutableList$SubList;->offset:I
|
|
|
|
.line 3
|
|
iput p3, p0, Lcom/google/common/collect/ImmutableList$SubList;->length:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public get(I)Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)TE;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/common/collect/ImmutableList$SubList;->length:I
|
|
|
|
invoke-static {p1, v0}, Lcom/google/common/base/Preconditions;->checkElementIndex(II)I
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableList$SubList;->this$0:Lcom/google/common/collect/ImmutableList;
|
|
|
|
iget v1, p0, Lcom/google/common/collect/ImmutableList$SubList;->offset:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public internalArray()[Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation runtime Ljavax/annotation/CheckForNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableList$SubList;->this$0:Lcom/google/common/collect/ImmutableList;
|
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableCollection;->internalArray()[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public internalArrayEnd()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableList$SubList;->this$0:Lcom/google/common/collect/ImmutableList;
|
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableCollection;->internalArrayStart()I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/google/common/collect/ImmutableList$SubList;->offset:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
iget v1, p0, Lcom/google/common/collect/ImmutableList$SubList;->length:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public internalArrayStart()I
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableList$SubList;->this$0:Lcom/google/common/collect/ImmutableList;
|
|
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableCollection;->internalArrayStart()I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lcom/google/common/collect/ImmutableList$SubList;->offset:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isPartialView()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
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 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 size()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/common/collect/ImmutableList$SubList;->length:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public subList(II)Lcom/google/common/collect/ImmutableList;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(II)",
|
|
"Lcom/google/common/collect/ImmutableList<",
|
|
"TE;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 2
|
|
iget v0, p0, Lcom/google/common/collect/ImmutableList$SubList;->length:I
|
|
|
|
invoke-static {p1, p2, v0}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableList$SubList;->this$0:Lcom/google/common/collect/ImmutableList;
|
|
|
|
iget v1, p0, Lcom/google/common/collect/ImmutableList$SubList;->offset:I
|
|
|
|
add-int/2addr p1, v1
|
|
|
|
add-int/2addr p2, v1
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/google/common/collect/ImmutableList;->subList(II)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$SubList;->subList(II)Lcom/google/common/collect/ImmutableList;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|