12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484 |
- .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 = {
- "<K:",
- "Ljava/lang/Object;",
- "V:",
- "Ljava/lang/Object;",
- ">",
- "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 <clinit>()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;-><init>()V
- sput-object v0, Lcom/google/gson/internal/LinkedHashTreeMap;->NATURAL_ORDER:Ljava/util/Comparator;
- return-void
- .end method
- .method public constructor <init>()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;-><init>(Ljava/util/Comparator;)V
- return-void
- .end method
- .method public constructor <init>(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;-><init>()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;-><init>()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 = {
- "<K:",
- "Ljava/lang/Object;",
- "V:",
- "Ljava/lang/Object;",
- ">([",
- "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;-><init>()V
- new-instance v3, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;
- invoke-direct {v3}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;-><init>()V
- new-instance v4, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;
- invoke-direct {v4}, Lcom/google/gson/internal/LinkedHashTreeMap$AvlBuilder;-><init>()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;-><init>(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;-><init>(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;-><init>()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;-><init>(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;-><init>(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;-><init>(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;-><init>(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;-><init>(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
|