123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- .class final Lcom/google/gson/Gson$5;
- .super Lcom/google/gson/TypeAdapter;
- .source ""
- # annotations
- .annotation system Ldalvik/annotation/EnclosingMethod;
- value = Lcom/google/gson/Gson;->atomicLongArrayAdapter(Lcom/google/gson/TypeAdapter;)Lcom/google/gson/TypeAdapter;
- .end annotation
- .annotation system Ldalvik/annotation/InnerClass;
- accessFlags = 0x8
- name = null
- .end annotation
- .annotation system Ldalvik/annotation/Signature;
- value = {
- "Lcom/google/gson/TypeAdapter<",
- "Ljava/util/concurrent/atomic/AtomicLongArray;",
- ">;"
- }
- .end annotation
- # instance fields
- .field final synthetic val$longAdapter:Lcom/google/gson/TypeAdapter;
- # direct methods
- .method constructor <init>(Lcom/google/gson/TypeAdapter;)V
- .locals 0
- iput-object p1, p0, Lcom/google/gson/Gson$5;->val$longAdapter:Lcom/google/gson/TypeAdapter;
- invoke-direct {p0}, Lcom/google/gson/TypeAdapter;-><init>()V
- return-void
- .end method
- # virtual methods
- .method public bridge synthetic read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
- .locals 0
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- invoke-virtual {p0, p1}, Lcom/google/gson/Gson$5;->read(Lcom/google/gson/stream/JsonReader;)Ljava/util/concurrent/atomic/AtomicLongArray;
- move-result-object p1
- return-object p1
- .end method
- .method public read(Lcom/google/gson/stream/JsonReader;)Ljava/util/concurrent/atomic/AtomicLongArray;
- .locals 5
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- new-instance v0, Ljava/util/ArrayList;
- invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->beginArray()V
- :goto_0
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->hasNext()Z
- move-result v1
- if-eqz v1, :cond_0
- iget-object v1, p0, Lcom/google/gson/Gson$5;->val$longAdapter:Lcom/google/gson/TypeAdapter;
- invoke-virtual {v1, p1}, Lcom/google/gson/TypeAdapter;->read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;
- move-result-object v1
- check-cast v1, Ljava/lang/Number;
- invoke-virtual {v1}, Ljava/lang/Number;->longValue()J
- move-result-wide v1
- invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
- move-result-object v1
- invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
- goto :goto_0
- :cond_0
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonReader;->endArray()V
- invoke-interface {v0}, Ljava/util/List;->size()I
- move-result p1
- new-instance v1, Ljava/util/concurrent/atomic/AtomicLongArray;
- invoke-direct {v1, p1}, Ljava/util/concurrent/atomic/AtomicLongArray;-><init>(I)V
- const/4 v2, 0x0
- :goto_1
- if-ge v2, p1, :cond_1
- invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
- move-result-object v3
- check-cast v3, Ljava/lang/Long;
- invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
- move-result-wide v3
- invoke-virtual {v1, v2, v3, v4}, Ljava/util/concurrent/atomic/AtomicLongArray;->set(IJ)V
- add-int/lit8 v2, v2, 0x1
- goto :goto_1
- :cond_1
- return-object v1
- .end method
- .method public bridge synthetic write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
- .locals 0
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- check-cast p2, Ljava/util/concurrent/atomic/AtomicLongArray;
- invoke-virtual {p0, p1, p2}, Lcom/google/gson/Gson$5;->write(Lcom/google/gson/stream/JsonWriter;Ljava/util/concurrent/atomic/AtomicLongArray;)V
- return-void
- .end method
- .method public write(Lcom/google/gson/stream/JsonWriter;Ljava/util/concurrent/atomic/AtomicLongArray;)V
- .locals 5
- .annotation system Ldalvik/annotation/Throws;
- value = {
- Ljava/io/IOException;
- }
- .end annotation
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->beginArray()Lcom/google/gson/stream/JsonWriter;
- invoke-virtual {p2}, Ljava/util/concurrent/atomic/AtomicLongArray;->length()I
- move-result v0
- const/4 v1, 0x0
- :goto_0
- if-ge v1, v0, :cond_0
- iget-object v2, p0, Lcom/google/gson/Gson$5;->val$longAdapter:Lcom/google/gson/TypeAdapter;
- invoke-virtual {p2, v1}, Ljava/util/concurrent/atomic/AtomicLongArray;->get(I)J
- move-result-wide v3
- invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
- move-result-object v3
- invoke-virtual {v2, p1, v3}, Lcom/google/gson/TypeAdapter;->write(Lcom/google/gson/stream/JsonWriter;Ljava/lang/Object;)V
- add-int/lit8 v1, v1, 0x1
- goto :goto_0
- :cond_0
- invoke-virtual {p1}, Lcom/google/gson/stream/JsonWriter;->endArray()Lcom/google/gson/stream/JsonWriter;
- return-void
- .end method
|