LinkedTreeMap$EntrySet.smali 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. .class Lcom/google/gson/internal/LinkedTreeMap$EntrySet;
  2. .super Ljava/util/AbstractSet;
  3. .source ""
  4. # annotations
  5. .annotation system Ldalvik/annotation/EnclosingClass;
  6. value = Lcom/google/gson/internal/LinkedTreeMap;
  7. .end annotation
  8. .annotation system Ldalvik/annotation/InnerClass;
  9. accessFlags = 0x0
  10. name = "EntrySet"
  11. .end annotation
  12. .annotation system Ldalvik/annotation/Signature;
  13. value = {
  14. "Ljava/util/AbstractSet<",
  15. "Ljava/util/Map$Entry<",
  16. "TK;TV;>;>;"
  17. }
  18. .end annotation
  19. # instance fields
  20. .field final synthetic this$0:Lcom/google/gson/internal/LinkedTreeMap;
  21. # direct methods
  22. .method constructor <init>(Lcom/google/gson/internal/LinkedTreeMap;)V
  23. .locals 0
  24. iput-object p1, p0, Lcom/google/gson/internal/LinkedTreeMap$EntrySet;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
  25. invoke-direct {p0}, Ljava/util/AbstractSet;-><init>()V
  26. return-void
  27. .end method
  28. # virtual methods
  29. .method public clear()V
  30. .locals 1
  31. iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$EntrySet;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
  32. invoke-virtual {v0}, Lcom/google/gson/internal/LinkedTreeMap;->clear()V
  33. return-void
  34. .end method
  35. .method public contains(Ljava/lang/Object;)Z
  36. .locals 1
  37. instance-of v0, p1, Ljava/util/Map$Entry;
  38. if-eqz v0, :cond_0
  39. iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$EntrySet;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
  40. check-cast p1, Ljava/util/Map$Entry;
  41. invoke-virtual {v0, p1}, Lcom/google/gson/internal/LinkedTreeMap;->findByEntry(Ljava/util/Map$Entry;)Lcom/google/gson/internal/LinkedTreeMap$Node;
  42. move-result-object p1
  43. if-eqz p1, :cond_0
  44. const/4 p1, 0x1
  45. goto :goto_0
  46. :cond_0
  47. const/4 p1, 0x0
  48. :goto_0
  49. return p1
  50. .end method
  51. .method public iterator()Ljava/util/Iterator;
  52. .locals 1
  53. .annotation system Ldalvik/annotation/Signature;
  54. value = {
  55. "()",
  56. "Ljava/util/Iterator<",
  57. "Ljava/util/Map$Entry<",
  58. "TK;TV;>;>;"
  59. }
  60. .end annotation
  61. new-instance v0, Lcom/google/gson/internal/LinkedTreeMap$EntrySet$1;
  62. invoke-direct {v0, p0}, Lcom/google/gson/internal/LinkedTreeMap$EntrySet$1;-><init>(Lcom/google/gson/internal/LinkedTreeMap$EntrySet;)V
  63. return-object v0
  64. .end method
  65. .method public remove(Ljava/lang/Object;)Z
  66. .locals 2
  67. instance-of v0, p1, Ljava/util/Map$Entry;
  68. const/4 v1, 0x0
  69. if-nez v0, :cond_0
  70. return v1
  71. :cond_0
  72. iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$EntrySet;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
  73. check-cast p1, Ljava/util/Map$Entry;
  74. invoke-virtual {v0, p1}, Lcom/google/gson/internal/LinkedTreeMap;->findByEntry(Ljava/util/Map$Entry;)Lcom/google/gson/internal/LinkedTreeMap$Node;
  75. move-result-object p1
  76. if-nez p1, :cond_1
  77. return v1
  78. :cond_1
  79. iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$EntrySet;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
  80. const/4 v1, 0x1
  81. invoke-virtual {v0, p1, v1}, Lcom/google/gson/internal/LinkedTreeMap;->removeInternal(Lcom/google/gson/internal/LinkedTreeMap$Node;Z)V
  82. return v1
  83. .end method
  84. .method public size()I
  85. .locals 1
  86. iget-object v0, p0, Lcom/google/gson/internal/LinkedTreeMap$EntrySet;->this$0:Lcom/google/gson/internal/LinkedTreeMap;
  87. iget v0, v0, Lcom/google/gson/internal/LinkedTreeMap;->size:I
  88. return v0
  89. .end method