###### Class kik.android.util.PartitionedRecycledViewPool (kik.android.util.PartitionedRecycledViewPool) .class public Lkik/android/util/PartitionedRecycledViewPool; .super Landroidx/recyclerview/widget/RecyclerView$RecycledViewPool; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lkik/android/util/PartitionedRecycledViewPool$a; } .end annotation # instance fields .field public final a:Ljava/util/HashMap; # direct methods .method public constructor ()V .registers 3 .line 1 .line 2 .line 3 invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$RecycledViewPool;->()V .line 4 .line 5 new-instance v0, Ljava/util/HashMap; .line 6 .line 7 const/16 v1, 0x14 .line 8 .line 9 .line 10 invoke-direct {v0, v1}, Ljava/util/HashMap;->(I)V .line 11 .line 12 iput-object v0, p0, Lkik/android/util/PartitionedRecycledViewPool;->a:Ljava/util/HashMap; .line 13 return-void .end method # virtual methods .method public final a(III)V .registers 6 .line 1 .line 2 new-instance v0, Lkik/android/util/PartitionedRecycledViewPool$a; .line 3 .line 4 .line 5 invoke-direct {v0}, Ljava/lang/Object;->()V .line 6 .line 7 if-gt p2, p3, :cond_1c .line 8 .line 9 new-instance p2, Ljava/util/ArrayDeque; .line 10 .line 11 iget v1, v0, Lkik/android/util/PartitionedRecycledViewPool$a;->a:I .line 12 .line 13 .line 14 invoke-direct {p2, v1}, Ljava/util/ArrayDeque;->(I)V .line 15 .line 16 iput-object p2, v0, Lkik/android/util/PartitionedRecycledViewPool$a;->b:Ljava/util/ArrayDeque; .line 17 .line 18 iput p3, v0, Lkik/android/util/PartitionedRecycledViewPool$a;->a:I .line 19 .line 20 iget-object p2, p0, Lkik/android/util/PartitionedRecycledViewPool;->a:Ljava/util/HashMap; .line 21 .line 22 .line 23 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; .line 24 move-result-object p1 .line 25 .line 26 .line 27 invoke-virtual {p2, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 28 return-void .line 29 .line 30 :cond_1c new-instance p1, Ljava/lang/IllegalArgumentException; .line 31 .line 32 const-string/jumbo p2, "preload size exceeds cache size" .line 33 .line 34 .line 35 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V .line 36 throw p1 .end method .method public final clear()V .registers 4 .line 1 .line 2 iget-object v0, p0, Lkik/android/util/PartitionedRecycledViewPool;->a:Ljava/util/HashMap; .line 3 .line 4 .line 5 invoke-virtual {v0}, Ljava/util/HashMap;->keySet()Ljava/util/Set; .line 6 move-result-object v1 .line 7 .line 8 .line 9 invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator; .line 10 move-result-object v1 .line 11 .line 12 .line 13 :goto_a invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z .line 14 move-result v2 .line 15 .line 16 if-eqz v2, :cond_22 .line 17 .line 18 .line 19 invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; .line 20 move-result-object v2 .line 21 .line 22 check-cast v2, Ljava/lang/Integer; .line 23 .line 24 .line 25 invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; .line 26 move-result-object v2 .line 27 .line 28 check-cast v2, Lkik/android/util/PartitionedRecycledViewPool$a; .line 29 .line 30 iget-object v2, v2, Lkik/android/util/PartitionedRecycledViewPool$a;->b:Ljava/util/ArrayDeque; .line 31 .line 32 .line 33 invoke-virtual {v2}, Ljava/util/ArrayDeque;->clear()V .line 34 goto :goto_a .line 35 .line 36 .line 37 :cond_22 invoke-virtual {v0}, Ljava/util/HashMap;->clear()V .line 38 return-void .end method .method public final getRecycledView(I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder; .registers 3 .line 1 .line 2 iget-object v0, p0, Lkik/android/util/PartitionedRecycledViewPool;->a:Ljava/util/HashMap; .line 3 .line 4 .line 5 invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; .line 6 move-result-object p1 .line 7 .line 8 .line 9 invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; .line 10 move-result-object p1 .line 11 .line 12 check-cast p1, Lkik/android/util/PartitionedRecycledViewPool$a; .line 13 const/4 v0, 0x0 .line 14 .line 15 if-nez p1, :cond_10 .line 16 return-object v0 .line 17 .line 18 :cond_10 :try_start_10 iget-object p1, p1, Lkik/android/util/PartitionedRecycledViewPool$a;->b:Ljava/util/ArrayDeque; .line 19 .line 20 .line 21 invoke-virtual {p1}, Ljava/util/ArrayDeque;->pop()Ljava/lang/Object; .line 22 move-result-object p1 .line 23 .line 24 check-cast p1, Landroidx/recyclerview/widget/RecyclerView$ViewHolder; :try_end_18 .catch Ljava/util/NoSuchElementException; {:try_start_10 .. :try_end_18} :catch_19 .line 25 move-object v0, p1 .line 26 :catch_19 return-object v0 .end method .method public final putRecycledView(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;)V .registers 6 .line 1 .line 2 .line 3 invoke-virtual {p1}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getItemViewType()I .line 4 move-result v0 .line 5 .line 6 iget-object v1, p0, Lkik/android/util/PartitionedRecycledViewPool;->a:Ljava/util/HashMap; .line 7 .line 8 .line 9 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; .line 10 move-result-object v2 .line 11 .line 12 .line 13 invoke-virtual {v1, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; .line 14 move-result-object v2 .line 15 .line 16 check-cast v2, Lkik/android/util/PartitionedRecycledViewPool$a; .line 17 .line 18 if-nez v2, :cond_22 .line 19 const/4 v2, 0x0 .line 20 const/4 v3, 0x2 .line 21 .line 22 .line 23 invoke-virtual {p0, v0, v2, v3}, Lkik/android/util/PartitionedRecycledViewPool;->a(III)V .line 24 .line 25 .line 26 invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; .line 27 move-result-object v0 .line 28 .line 29 .line 30 invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; .line 31 move-result-object v0 .line 32 move-object v2, v0 .line 33 .line 34 check-cast v2, Lkik/android/util/PartitionedRecycledViewPool$a; .line 35 .line 36 :cond_22 iget-object v0, v2, Lkik/android/util/PartitionedRecycledViewPool$a;->b:Ljava/util/ArrayDeque; .line 37 .line 38 .line 39 invoke-virtual {v0}, Ljava/util/ArrayDeque;->size()I .line 40 move-result v1 .line 41 .line 42 iget v2, v2, Lkik/android/util/PartitionedRecycledViewPool$a;->a:I .line 43 .line 44 if-lt v1, v2, :cond_2d .line 45 goto :goto_30 .line 46 .line 47 .line 48 :cond_2d invoke-virtual {v0, p1}, Ljava/util/ArrayDeque;->push(Ljava/lang/Object;)V .line 49 :goto_30 return-void .end method .method public final setMaxRecycledViews(II)V .registers 3 return-void .end method ###### Class kik.android.util.PartitionedRecycledViewPool.a (kik.android.util.PartitionedRecycledViewPool$a) .class public final Lkik/android/util/PartitionedRecycledViewPool$a; .super Ljava/lang/Object; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lkik/android/util/PartitionedRecycledViewPool; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "a" .end annotation # instance fields .field public a:I .field public b:Ljava/util/ArrayDeque; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayDeque<", "Landroidx/recyclerview/widget/RecyclerView$ViewHolder;", ">;" } .end annotation .end field