.class Landroidx/recyclerview/widget/LayoutState; .super Ljava/lang/Object; .source "LayoutState.java" # static fields .field static final INVALID_LAYOUT:I = -0x80000000 .field static final ITEM_DIRECTION_HEAD:I = -0x1 .field static final ITEM_DIRECTION_TAIL:I = 0x1 .field static final LAYOUT_END:I = 0x1 .field static final LAYOUT_START:I = -0x1 # instance fields .field mAvailable:I .field mCurrentPosition:I .field mEndLine:I .field mInfinite:Z .field mItemDirection:I .field mLayoutDirection:I .field mRecycle:Z .field mStartLine:I .field mStopInFocusable:Z # direct methods .method constructor ()V .locals 1 .line 25 invoke-direct {p0}, Ljava/lang/Object;->()V const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/recyclerview/widget/LayoutState;->mRecycle:Z const/4 v0, 0x0 iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mStartLine:I iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mEndLine:I return-void .end method # virtual methods .method hasMore(Landroidx/recyclerview/widget/RecyclerView$State;)Z .locals 0 iget p0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I if-ltz p0, :cond_0 .line 88 invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$State;->getItemCount()I move-result p1 if-ge p0, p1, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method next(Landroidx/recyclerview/widget/RecyclerView$Recycler;)Landroid/view/View; .locals 2 iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I .line 98 invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView$Recycler;->getViewForPosition(I)Landroid/view/View; move-result-object p1 iget v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mItemDirection:I add-int/2addr v0, v1 iput v0, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I return-object p1 .end method .method public toString()Ljava/lang/String; .locals 2 .line 105 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "LayoutState{mAvailable=" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mAvailable:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", mCurrentPosition=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mCurrentPosition:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", mItemDirection=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mItemDirection:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", mLayoutDirection=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mLayoutDirection:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", mStartLine=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget v1, p0, Landroidx/recyclerview/widget/LayoutState;->mStartLine:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v0 const-string v1, ", mEndLine=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 iget p0, p0, Landroidx/recyclerview/widget/LayoutState;->mEndLine:I invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const/16 v0, 0x7d invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 return-object p0 .end method