.class public Landroidx/recyclerview/widget/m0$a; .super Ljava/lang/Object; .source "ViewTypeStorage.java" # interfaces .implements Landroidx/recyclerview/widget/m0; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroidx/recyclerview/widget/m0; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "a" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/recyclerview/widget/m0$a$a; } .end annotation # instance fields .field public a:Landroid/util/SparseArray; .annotation system Ldalvik/annotation/Signature; value = { "Landroid/util/SparseArray<", "Landroidx/recyclerview/widget/x;", ">;" } .end annotation .end field .field public b:I # direct methods .method public constructor ()V .locals 1 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V .line 2 new-instance v0, Landroid/util/SparseArray; invoke-direct {v0}, Landroid/util/SparseArray;->()V iput-object v0, p0, Landroidx/recyclerview/widget/m0$a;->a:Landroid/util/SparseArray; const/4 v0, 0x0 .line 3 iput v0, p0, Landroidx/recyclerview/widget/m0$a;->b:I return-void .end method # virtual methods .method public a(I)Landroidx/recyclerview/widget/x; .locals 2 .annotation build Landroidx/annotation/NonNull; .end annotation .line 1 iget-object v0, p0, Landroidx/recyclerview/widget/m0$a;->a:Landroid/util/SparseArray; invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroidx/recyclerview/widget/x; if-eqz v0, :cond_0 return-object v0 .line 2 :cond_0 new-instance v0, Ljava/lang/IllegalArgumentException; const-string v1, "Cannot find the wrapper for global view type " invoke-static {v1, p1}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method .method public b(Landroidx/recyclerview/widget/x;)Landroidx/recyclerview/widget/m0$c; .locals 1 .param p1 # Landroidx/recyclerview/widget/x; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .annotation build Landroidx/annotation/NonNull; .end annotation .line 1 new-instance v0, Landroidx/recyclerview/widget/m0$a$a; invoke-direct {v0, p0, p1}, Landroidx/recyclerview/widget/m0$a$a;->(Landroidx/recyclerview/widget/m0$a;Landroidx/recyclerview/widget/x;)V return-object v0 .end method .method public c(Landroidx/recyclerview/widget/x;)I .locals 2 .line 1 iget v0, p0, Landroidx/recyclerview/widget/m0$a;->b:I add-int/lit8 v1, v0, 0x1 iput v1, p0, Landroidx/recyclerview/widget/m0$a;->b:I .line 2 iget-object v1, p0, Landroidx/recyclerview/widget/m0$a;->a:Landroid/util/SparseArray; invoke-virtual {v1, v0, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V return v0 .end method .method public d(Landroidx/recyclerview/widget/x;)V .locals 2 .param p1 # Landroidx/recyclerview/widget/x; .annotation build Landroidx/annotation/NonNull; .end annotation .end param .line 1 iget-object v0, p0, Landroidx/recyclerview/widget/m0$a;->a:Landroid/util/SparseArray; invoke-virtual {v0}, Landroid/util/SparseArray;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 :goto_0 if-ltz v0, :cond_1 .line 2 iget-object v1, p0, Landroidx/recyclerview/widget/m0$a;->a:Landroid/util/SparseArray; invoke-virtual {v1, v0}, Landroid/util/SparseArray;->valueAt(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroidx/recyclerview/widget/x; if-ne v1, p1, :cond_0 .line 3 iget-object v1, p0, Landroidx/recyclerview/widget/m0$a;->a:Landroid/util/SparseArray; invoke-virtual {v1, v0}, Landroid/util/SparseArray;->removeAt(I)V :cond_0 add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_1 return-void .end method