115 lines
2.4 KiB
Smali
115 lines
2.4 KiB
Smali
.class public Landroidx/recyclerview/widget/TileList$Tile;
|
|
.super Ljava/lang/Object;
|
|
.source "TileList.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/recyclerview/widget/TileList;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Tile"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public mItemCount:I
|
|
|
|
.field public final mItems:[Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"[TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field mNext:Landroidx/recyclerview/widget/TileList$Tile;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/recyclerview/widget/TileList$Tile<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public mStartPosition:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/Class;I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Class<",
|
|
"TT;>;I)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Ljava/lang/Object;
|
|
|
|
iput-object p1, p0, Landroidx/recyclerview/widget/TileList$Tile;->mItems:[Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method containsPosition(I)Z
|
|
.locals 2
|
|
|
|
iget v0, p0, Landroidx/recyclerview/widget/TileList$Tile;->mStartPosition:I
|
|
|
|
if-gt v0, p1, :cond_0
|
|
|
|
iget v1, p0, Landroidx/recyclerview/widget/TileList$Tile;->mItemCount:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
if-ge p1, v0, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method getByPosition(I)Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/recyclerview/widget/TileList$Tile;->mItems:[Ljava/lang/Object;
|
|
|
|
iget v1, p0, Landroidx/recyclerview/widget/TileList$Tile;->mStartPosition:I
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
aget-object p1, v0, p1
|
|
|
|
return-object p1
|
|
.end method
|