.class public final Lcom/google/gson/internal/LinkedHashTreeMap; .super Ljava/util/AbstractMap; .source "" # interfaces .implements Ljava/io/Serializable; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/gson/internal/LinkedHashTreeMap$KeySet;, Lcom/google/gson/internal/LinkedHashTreeMap$EntrySet;, Lcom/google/gson/internal/LinkedHashTreeMap$LinkedTreeMapIterator;, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;, Lcom/google/gson/internal/LinkedHashTreeMap$Node; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/util/AbstractMap<", "TK;TV;>;", "Ljava/io/Serializable;" } .end annotation # static fields .field static final synthetic $assertionsDisabled:Z .field private static final NATURAL_ORDER:Ljava/util/Comparator; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Comparator<", "Ljava/lang/Comparable;", ">;" } .end annotation .end field # instance fields .field comparator:Ljava/util/Comparator; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Comparator<", "-TK;>;" } .end annotation .end field .field private entrySet:Lcom/google/gson/internal/LinkedHashTreeMap$EntrySet; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/gson/internal/LinkedHashTreeMap<", "TK;TV;>.EntrySet;" } .end annotation .end field .field final header:Lcom/google/gson/internal/LinkedHashTreeMap$Node; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;" } .end annotation .end field .field private keySet:Lcom/google/gson/internal/LinkedHashTreeMap$KeySet; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/gson/internal/LinkedHashTreeMap<", "TK;TV;>.KeySet;" } .end annotation .end field .field modCount:I .field size:I .field table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; .annotation system Ldalvik/annotation/Signature; value = { "[", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;" } .end annotation .end field .field threshold:I # direct methods .method static constructor ()V .locals 1 const-class v0, Lcom/google/gson/internal/LinkedHashTreeMap; new-instance v0, Lcom/google/gson/internal/LinkedHashTreeMap$1; invoke-direct {v0}, Lcom/google/gson/internal/LinkedHashTreeMap$1;->()V sput-object v0, Lcom/google/gson/internal/LinkedHashTreeMap;->NATURAL_ORDER:Ljava/util/Comparator; return-void .end method .method public constructor ()V .locals 1 sget-object v0, Lcom/google/gson/internal/LinkedHashTreeMap;->NATURAL_ORDER:Ljava/util/Comparator; invoke-direct {p0, v0}, Lcom/google/gson/internal/LinkedHashTreeMap;->(Ljava/util/Comparator;)V return-void .end method .method public constructor (Ljava/util/Comparator;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Comparator<", "-TK;>;)V" } .end annotation invoke-direct {p0}, Ljava/util/AbstractMap;->()V const/4 v0, 0x0 iput v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->size:I iput v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I if-eqz p1, :cond_0 goto :goto_0 :cond_0 sget-object p1, Lcom/google/gson/internal/LinkedHashTreeMap;->NATURAL_ORDER:Ljava/util/Comparator; :goto_0 iput-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->comparator:Ljava/util/Comparator; new-instance p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node; invoke-direct {p1}, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->()V iput-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->header:Lcom/google/gson/internal/LinkedHashTreeMap$Node; const/16 p1, 0x10 new-array p1, p1, [Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; array-length v0, p1 div-int/lit8 v0, v0, 0x2 array-length p1, p1 div-int/lit8 p1, p1, 0x4 add-int/2addr v0, p1 iput v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->threshold:I return-void .end method .method private doubleCapacity()V .locals 2 iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; invoke-static {v0}, Lcom/google/gson/internal/LinkedHashTreeMap;->doubleCapacity([Lcom/google/gson/internal/LinkedHashTreeMap$Node;)[Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object v0 iput-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; array-length v1, v0 div-int/lit8 v1, v1, 0x2 array-length v0, v0 div-int/lit8 v0, v0, 0x4 add-int/2addr v1, v0 iput v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->threshold:I return-void .end method .method static doubleCapacity([Lcom/google/gson/internal/LinkedHashTreeMap$Node;)[Lcom/google/gson/internal/LinkedHashTreeMap$Node; .locals 11 .annotation system Ldalvik/annotation/Signature; value = { "([", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;)[", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;" } .end annotation array-length v0, p0 mul-int/lit8 v1, v0, 0x2 new-array v1, v1, [Lcom/google/gson/internal/LinkedHashTreeMap$Node; new-instance v2, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator; invoke-direct {v2}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;->()V new-instance v3, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder; invoke-direct {v3}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->()V new-instance v4, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder; invoke-direct {v4}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->()V const/4 v5, 0x0 const/4 v6, 0x0 :goto_0 if-ge v6, v0, :cond_7 aget-object v7, p0, v6 if-nez v7, :cond_0 goto :goto_4 :cond_0 invoke-virtual {v2, v7}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;->reset(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V const/4 v8, 0x0 const/4 v9, 0x0 :goto_1 invoke-virtual {v2}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;->next()Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object v10 if-eqz v10, :cond_2 iget v10, v10, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->hash:I and-int/2addr v10, v0 if-nez v10, :cond_1 add-int/lit8 v8, v8, 0x1 goto :goto_1 :cond_1 add-int/lit8 v9, v9, 0x1 goto :goto_1 :cond_2 invoke-virtual {v3, v8}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->reset(I)V invoke-virtual {v4, v9}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->reset(I)V invoke-virtual {v2, v7}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;->reset(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V :goto_2 invoke-virtual {v2}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlIterator;->next()Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object v7 if-eqz v7, :cond_4 iget v10, v7, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->hash:I and-int/2addr v10, v0 if-nez v10, :cond_3 invoke-virtual {v3, v7}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->add(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V goto :goto_2 :cond_3 invoke-virtual {v4, v7}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->add(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V goto :goto_2 :cond_4 const/4 v7, 0x0 if-lez v8, :cond_5 invoke-virtual {v3}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->root()Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object v8 goto :goto_3 :cond_5 move-object v8, v7 :goto_3 aput-object v8, v1, v6 add-int v8, v6, v0 if-lez v9, :cond_6 invoke-virtual {v4}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;->root()Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object v7 :cond_6 aput-object v7, v1, v8 :goto_4 add-int/lit8 v6, v6, 0x1 goto :goto_0 :cond_7 return-object v1 .end method .method private equal(Ljava/lang/Object;Ljava/lang/Object;)Z .locals 0 if-eq p1, p2, :cond_1 if-eqz p1, :cond_0 invoke-virtual {p1, p2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_0 goto :goto_0 :cond_0 const/4 p1, 0x0 goto :goto_1 :cond_1 :goto_0 const/4 p1, 0x1 :goto_1 return p1 .end method .method private rebalance(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Z)V .locals 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;Z)V" } .end annotation :goto_0 if-eqz p1, :cond_e iget-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; const/4 v2, 0x0 if-eqz v0, :cond_0 iget v3, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I goto :goto_1 :cond_0 const/4 v3, 0x0 :goto_1 if-eqz v1, :cond_1 iget v4, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I goto :goto_2 :cond_1 const/4 v4, 0x0 :goto_2 sub-int v5, v3, v4 const/4 v6, -0x2 if-ne v5, v6, :cond_6 iget-object v0, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v3, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-eqz v3, :cond_2 iget v3, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I goto :goto_3 :cond_2 const/4 v3, 0x0 :goto_3 if-eqz v0, :cond_3 iget v2, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I :cond_3 sub-int/2addr v2, v3 const/4 v0, -0x1 if-eq v2, v0, :cond_5 if-nez v2, :cond_4 if-nez p2, :cond_4 goto :goto_4 :cond_4 invoke-direct {p0, v1}, Lcom/google/gson/internal/LinkedHashTreeMap;->rotateRight(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V :cond_5 :goto_4 invoke-direct {p0, p1}, Lcom/google/gson/internal/LinkedHashTreeMap;->rotateLeft(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V if-eqz p2, :cond_d goto :goto_7 :cond_6 const/4 v1, 0x2 const/4 v6, 0x1 if-ne v5, v1, :cond_b iget-object v1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v3, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-eqz v3, :cond_7 iget v3, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I goto :goto_5 :cond_7 const/4 v3, 0x0 :goto_5 if-eqz v1, :cond_8 iget v2, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I :cond_8 sub-int/2addr v2, v3 if-eq v2, v6, :cond_a if-nez v2, :cond_9 if-nez p2, :cond_9 goto :goto_6 :cond_9 invoke-direct {p0, v0}, Lcom/google/gson/internal/LinkedHashTreeMap;->rotateLeft(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V :cond_a :goto_6 invoke-direct {p0, p1}, Lcom/google/gson/internal/LinkedHashTreeMap;->rotateRight(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V if-eqz p2, :cond_d goto :goto_7 :cond_b if-nez v5, :cond_c add-int/lit8 v3, v3, 0x1 iput v3, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I if-eqz p2, :cond_d goto :goto_7 :cond_c invoke-static {v3, v4}, Ljava/lang/Math;->max(II)I move-result v0 add-int/2addr v0, v6 iput v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I if-nez p2, :cond_d goto :goto_7 :cond_d iget-object p1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; goto :goto_0 :cond_e :goto_7 return-void .end method .method private replaceInParent(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;)V" } .end annotation iget-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; const/4 v1, 0x0 iput-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-eqz p2, :cond_0 iput-object v0, p2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; :cond_0 if-eqz v0, :cond_2 iget-object v1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-ne v1, p1, :cond_1 iput-object p2, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; goto :goto_0 :cond_1 iput-object p2, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; goto :goto_0 :cond_2 iget p1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->hash:I iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; array-length v1, v0 add-int/lit8 v1, v1, -0x1 and-int/2addr p1, v1 aput-object p2, v0, p1 :goto_0 return-void .end method .method private rotateLeft(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;)V" } .end annotation iget-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v2, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v3, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v2, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-eqz v2, :cond_0 iput-object p1, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; :cond_0 invoke-direct {p0, p1, v1}, Lcom/google/gson/internal/LinkedHashTreeMap;->replaceInParent(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V iput-object p1, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; const/4 v4, 0x0 if-eqz v0, :cond_1 iget v0, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I goto :goto_0 :cond_1 const/4 v0, 0x0 :goto_0 if-eqz v2, :cond_2 iget v2, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I goto :goto_1 :cond_2 const/4 v2, 0x0 :goto_1 invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I move-result v0 add-int/lit8 v0, v0, 0x1 iput v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I iget p1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I if-eqz v3, :cond_3 iget v4, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I :cond_3 invoke-static {p1, v4}, Ljava/lang/Math;->max(II)I move-result p1 add-int/lit8 p1, p1, 0x1 iput p1, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I return-void .end method .method private rotateRight(Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;)V" } .end annotation iget-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v2, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v3, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v3, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-eqz v3, :cond_0 iput-object p1, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; :cond_0 invoke-direct {p0, p1, v0}, Lcom/google/gson/internal/LinkedHashTreeMap;->replaceInParent(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V iput-object p1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; const/4 v4, 0x0 if-eqz v1, :cond_1 iget v1, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I goto :goto_0 :cond_1 const/4 v1, 0x0 :goto_0 if-eqz v3, :cond_2 iget v3, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I goto :goto_1 :cond_2 const/4 v3, 0x0 :goto_1 invoke-static {v1, v3}, Ljava/lang/Math;->max(II)I move-result v1 add-int/lit8 v1, v1, 0x1 iput v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I iget p1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I if-eqz v2, :cond_3 iget v4, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I :cond_3 invoke-static {p1, v4}, Ljava/lang/Math;->max(II)I move-result p1 add-int/lit8 p1, p1, 0x1 iput p1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I return-void .end method .method private static secondaryHash(I)I .locals 2 ushr-int/lit8 v0, p0, 0x14 ushr-int/lit8 v1, p0, 0xc xor-int/2addr v0, v1 xor-int/2addr p0, v0 ushr-int/lit8 v0, p0, 0x7 xor-int/2addr v0, p0 ushr-int/lit8 p0, p0, 0x4 xor-int/2addr p0, v0 return p0 .end method .method private writeReplace()Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/ObjectStreamException; } .end annotation new-instance v0, Ljava/util/LinkedHashMap; invoke-direct {v0, p0}, Ljava/util/LinkedHashMap;->(Ljava/util/Map;)V return-object v0 .end method # virtual methods .method public clear()V .locals 4 iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; const/4 v1, 0x0 invoke-static {v0, v1}, Ljava/util/Arrays;->fill([Ljava/lang/Object;Ljava/lang/Object;)V const/4 v0, 0x0 iput v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->size:I iget v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I add-int/lit8 v0, v0, 0x1 iput v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->header:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v2, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node; :goto_0 if-eq v2, v0, :cond_0 iget-object v3, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v1, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->prev:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v1, v2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-object v2, v3 goto :goto_0 :cond_0 iput-object v0, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->prev:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v0, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node; return-void .end method .method public containsKey(Ljava/lang/Object;)Z .locals 0 invoke-virtual {p0, p1}, Lcom/google/gson/internal/LinkedHashTreeMap;->findByObject(Ljava/lang/Object;)Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object p1 if-eqz p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .end method .method public entrySet()Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set<", "Ljava/util/Map$Entry<", "TK;TV;>;>;" } .end annotation iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->entrySet:Lcom/google/gson/internal/LinkedHashTreeMap$EntrySet; if-eqz v0, :cond_0 goto :goto_0 :cond_0 new-instance v0, Lcom/google/gson/internal/LinkedHashTreeMap$EntrySet; invoke-direct {v0, p0}, Lcom/google/gson/internal/LinkedHashTreeMap$EntrySet;->(Lcom/google/gson/internal/LinkedHashTreeMap;)V iput-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->entrySet:Lcom/google/gson/internal/LinkedHashTreeMap$EntrySet; :goto_0 return-object v0 .end method .method find(Ljava/lang/Object;Z)Lcom/google/gson/internal/LinkedHashTreeMap$Node; .locals 12 .annotation system Ldalvik/annotation/Signature; value = { "(TK;Z)", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;" } .end annotation iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->comparator:Ljava/util/Comparator; iget-object v1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->table:[Lcom/google/gson/internal/LinkedHashTreeMap$Node; invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I move-result v2 invoke-static {v2}, Lcom/google/gson/internal/LinkedHashTreeMap;->secondaryHash(I)I move-result v6 array-length v2, v1 const/4 v9, 0x1 sub-int/2addr v2, v9 and-int/2addr v2, v6 aget-object v3, v1, v2 const/4 v4, 0x0 if-eqz v3, :cond_5 sget-object v5, Lcom/google/gson/internal/LinkedHashTreeMap;->NATURAL_ORDER:Ljava/util/Comparator; if-ne v0, v5, :cond_0 move-object v5, p1 check-cast v5, Ljava/lang/Comparable; goto :goto_0 :cond_0 move-object v5, v4 :goto_0 iget-object v7, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->key:Ljava/lang/Object; if-eqz v5, :cond_1 invoke-interface {v5, v7}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I move-result v7 goto :goto_1 :cond_1 invoke-interface {v0, p1, v7}, Ljava/util/Comparator;->compare(Ljava/lang/Object;Ljava/lang/Object;)I move-result v7 :goto_1 if-nez v7, :cond_2 return-object v3 :cond_2 if-gez v7, :cond_3 iget-object v8, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; goto :goto_2 :cond_3 iget-object v8, v3, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; :goto_2 if-nez v8, :cond_4 move-object v10, v3 move v11, v7 goto :goto_3 :cond_4 move-object v3, v8 goto :goto_0 :cond_5 const/4 v7, 0x0 move-object v10, v3 const/4 v11, 0x0 :goto_3 if-nez p2, :cond_6 return-object v4 :cond_6 iget-object v7, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->header:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-nez v10, :cond_9 sget-object p2, Lcom/google/gson/internal/LinkedHashTreeMap;->NATURAL_ORDER:Ljava/util/Comparator; if-ne v0, p2, :cond_8 instance-of p2, p1, Ljava/lang/Comparable; if-eqz p2, :cond_7 goto :goto_4 :cond_7 new-instance p2, Ljava/lang/ClassCastException; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object p1 invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String; move-result-object p1 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p1, " is not Comparable" invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/ClassCastException;->(Ljava/lang/String;)V throw p2 :cond_8 :goto_4 new-instance p2, Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v8, v7, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->prev:Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-object v3, p2 move-object v4, v10 move-object v5, p1 invoke-direct/range {v3 .. v8}, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Ljava/lang/Object;ILcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V aput-object p2, v1, v2 goto :goto_6 :cond_9 new-instance p2, Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v8, v7, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->prev:Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-object v3, p2 move-object v4, v10 move-object v5, p1 invoke-direct/range {v3 .. v8}, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Ljava/lang/Object;ILcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V if-gez v11, :cond_a iput-object p2, v10, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; goto :goto_5 :cond_a iput-object p2, v10, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; :goto_5 invoke-direct {p0, v10, v9}, Lcom/google/gson/internal/LinkedHashTreeMap;->rebalance(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Z)V :goto_6 iget p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->size:I add-int/lit8 v0, p1, 0x1 iput v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->size:I iget v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->threshold:I if-le p1, v0, :cond_b invoke-direct {p0}, Lcom/google/gson/internal/LinkedHashTreeMap;->doubleCapacity()V :cond_b iget p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I add-int/2addr p1, v9 iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I return-object p2 .end method .method findByEntry(Ljava/util/Map$Entry;)Lcom/google/gson/internal/LinkedHashTreeMap$Node; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map$Entry<", "**>;)", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;" } .end annotation invoke-interface {p1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v0 invoke-virtual {p0, v0}, Lcom/google/gson/internal/LinkedHashTreeMap;->findByObject(Ljava/lang/Object;)Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object v0 if-eqz v0, :cond_0 iget-object v1, v0, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->value:Ljava/lang/Object; invoke-interface {p1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object p1 invoke-direct {p0, v1, p1}, Lcom/google/gson/internal/LinkedHashTreeMap;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 if-eqz p1, :cond_1 goto :goto_1 :cond_1 const/4 v0, 0x0 :goto_1 return-object v0 .end method .method findByObject(Ljava/lang/Object;)Lcom/google/gson/internal/LinkedHashTreeMap$Node; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Object;", ")", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;" } .end annotation const/4 v0, 0x0 if-eqz p1, :cond_0 const/4 v1, 0x0 :try_start_0 invoke-virtual {p0, p1, v1}, Lcom/google/gson/internal/LinkedHashTreeMap;->find(Ljava/lang/Object;Z)Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object v0 :try_end_0 .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0 nop :catch_0 :cond_0 return-object v0 .end method .method public get(Ljava/lang/Object;)Ljava/lang/Object; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Object;", ")TV;" } .end annotation invoke-virtual {p0, p1}, Lcom/google/gson/internal/LinkedHashTreeMap;->findByObject(Ljava/lang/Object;)Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object p1 if-eqz p1, :cond_0 iget-object p1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->value:Ljava/lang/Object; goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return-object p1 .end method .method public keySet()Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set<", "TK;>;" } .end annotation iget-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->keySet:Lcom/google/gson/internal/LinkedHashTreeMap$KeySet; if-eqz v0, :cond_0 goto :goto_0 :cond_0 new-instance v0, Lcom/google/gson/internal/LinkedHashTreeMap$KeySet; invoke-direct {v0, p0}, Lcom/google/gson/internal/LinkedHashTreeMap$KeySet;->(Lcom/google/gson/internal/LinkedHashTreeMap;)V iput-object v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->keySet:Lcom/google/gson/internal/LinkedHashTreeMap$KeySet; :goto_0 return-object v0 .end method .method public put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TK;TV;)TV;" } .end annotation if-eqz p1, :cond_0 const/4 v0, 0x1 invoke-virtual {p0, p1, v0}, Lcom/google/gson/internal/LinkedHashTreeMap;->find(Ljava/lang/Object;Z)Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object p1 iget-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->value:Ljava/lang/Object; iput-object p2, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->value:Ljava/lang/Object; return-object v0 :cond_0 new-instance p1, Ljava/lang/NullPointerException; const-string p2, "key == null" invoke-direct {p1, p2}, Ljava/lang/NullPointerException;->(Ljava/lang/String;)V throw p1 .end method .method public remove(Ljava/lang/Object;)Ljava/lang/Object; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Object;", ")TV;" } .end annotation invoke-virtual {p0, p1}, Lcom/google/gson/internal/LinkedHashTreeMap;->removeInternalByKey(Ljava/lang/Object;)Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object p1 if-eqz p1, :cond_0 iget-object p1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->value:Ljava/lang/Object; goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return-object p1 .end method .method removeInternal(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Z)V .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;Z)V" } .end annotation const/4 v0, 0x0 if-eqz p2, :cond_0 iget-object p2, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->prev:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v1, p2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object p2, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->prev:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->prev:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->next:Lcom/google/gson/internal/LinkedHashTreeMap$Node; :cond_0 iget-object p2, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iget-object v2, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; const/4 v3, 0x0 if-eqz p2, :cond_4 if-eqz v1, :cond_4 iget v2, p2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I iget v4, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I if-le v2, v4, :cond_1 invoke-virtual {p2}, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->last()Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object p2 goto :goto_0 :cond_1 invoke-virtual {v1}, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->first()Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object p2 :goto_0 invoke-virtual {p0, p2, v3}, Lcom/google/gson/internal/LinkedHashTreeMap;->removeInternal(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Z)V iget-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-eqz v1, :cond_2 iget v2, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I iput-object v1, p2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object p2, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; goto :goto_1 :cond_2 const/4 v2, 0x0 :goto_1 iget-object v1, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; if-eqz v1, :cond_3 iget v3, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I iput-object v1, p2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object p2, v1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->parent:Lcom/google/gson/internal/LinkedHashTreeMap$Node; iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; :cond_3 invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I move-result v0 add-int/lit8 v0, v0, 0x1 iput v0, p2, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->height:I invoke-direct {p0, p1, p2}, Lcom/google/gson/internal/LinkedHashTreeMap;->replaceInParent(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V return-void :cond_4 if-eqz p2, :cond_5 invoke-direct {p0, p1, p2}, Lcom/google/gson/internal/LinkedHashTreeMap;->replaceInParent(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->left:Lcom/google/gson/internal/LinkedHashTreeMap$Node; goto :goto_2 :cond_5 if-eqz v1, :cond_6 invoke-direct {p0, p1, v1}, Lcom/google/gson/internal/LinkedHashTreeMap;->replaceInParent(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V iput-object v0, p1, Lcom/google/gson/internal/LinkedHashTreeMap$Node;->right:Lcom/google/gson/internal/LinkedHashTreeMap$Node; goto :goto_2 :cond_6 invoke-direct {p0, p1, v0}, Lcom/google/gson/internal/LinkedHashTreeMap;->replaceInParent(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Lcom/google/gson/internal/LinkedHashTreeMap$Node;)V :goto_2 invoke-direct {p0, v2, v3}, Lcom/google/gson/internal/LinkedHashTreeMap;->rebalance(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Z)V iget p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->size:I add-int/lit8 p1, p1, -0x1 iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->size:I iget p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I add-int/lit8 p1, p1, 0x1 iput p1, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->modCount:I return-void .end method .method removeInternalByKey(Ljava/lang/Object;)Lcom/google/gson/internal/LinkedHashTreeMap$Node; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Object;", ")", "Lcom/google/gson/internal/LinkedHashTreeMap$Node<", "TK;TV;>;" } .end annotation invoke-virtual {p0, p1}, Lcom/google/gson/internal/LinkedHashTreeMap;->findByObject(Ljava/lang/Object;)Lcom/google/gson/internal/LinkedHashTreeMap$Node; move-result-object p1 if-eqz p1, :cond_0 const/4 v0, 0x1 invoke-virtual {p0, p1, v0}, Lcom/google/gson/internal/LinkedHashTreeMap;->removeInternal(Lcom/google/gson/internal/LinkedHashTreeMap$Node;Z)V :cond_0 return-object p1 .end method .method public size()I .locals 1 iget v0, p0, Lcom/google/gson/internal/LinkedHashTreeMap;->size:I return v0 .end method