.class final Lcom/google/common/graph/DirectedGraphConnections; .super Ljava/lang/Object; .source "DirectedGraphConnections.java" # interfaces .implements Lcom/google/common/graph/GraphConnections; # annotations .annotation runtime Lcom/google/common/graph/ElementTypesAreNonnullByDefault; .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/common/graph/DirectedGraphConnections$NodeConnection;, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Lcom/google/common/graph/GraphConnections<", "TN;TV;>;" } .end annotation # static fields .field private static final PRED:Ljava/lang/Object; # instance fields .field private final adjacentNodeValues:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "TN;", "Ljava/lang/Object;", ">;" } .end annotation .end field .field private final orderedNodeConnections:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Lcom/google/common/graph/DirectedGraphConnections$NodeConnection<", "TN;>;>;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end field .field private predecessorCount:I .field private successorCount:I # direct methods .method static constructor ()V .locals 1 .line 123 new-instance v0, Ljava/lang/Object; invoke-direct {v0}, Ljava/lang/Object;->()V sput-object v0, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; return-void .end method .method private constructor (Ljava/util/Map;Ljava/util/List;II)V .locals 1 .param p2 # Ljava/util/List; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map<", "TN;", "Ljava/lang/Object;", ">;", "Ljava/util/List<", "Lcom/google/common/graph/DirectedGraphConnections$NodeConnection<", "TN;>;>;II)V" } .end annotation .line 146 invoke-direct {p0}, Ljava/lang/Object;->()V .line 147 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Map; iput-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; iput-object p2, p0, Lcom/google/common/graph/DirectedGraphConnections;->orderedNodeConnections:Ljava/util/List; .line 149 invoke-static {p3}, Lcom/google/common/graph/Graphs;->checkNonNegative(I)I move-result p2 iput p2, p0, Lcom/google/common/graph/DirectedGraphConnections;->predecessorCount:I .line 150 invoke-static {p4}, Lcom/google/common/graph/Graphs;->checkNonNegative(I)I move-result p2 iput p2, p0, Lcom/google/common/graph/DirectedGraphConnections;->successorCount:I .line 152 invoke-interface {p1}, Ljava/util/Map;->size()I move-result p0 if-gt p3, p0, :cond_0 .line 153 invoke-interface {p1}, Ljava/util/Map;->size()I move-result p0 if-gt p4, p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 .line 151 :goto_0 invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkState(Z)V return-void .end method .method static synthetic access$000(Lcom/google/common/graph/DirectedGraphConnections;)Ljava/util/List; .locals 0 .line 54 iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->orderedNodeConnections:Ljava/util/List; return-object p0 .end method .method static synthetic access$100(Lcom/google/common/graph/DirectedGraphConnections;)Ljava/util/Map; .locals 0 .line 54 iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; return-object p0 .end method .method static synthetic access$200(Ljava/lang/Object;)Z .locals 0 .line 54 invoke-static {p0}, Lcom/google/common/graph/DirectedGraphConnections;->isPredecessor(Ljava/lang/Object;)Z move-result p0 return p0 .end method .method static synthetic access$300(Lcom/google/common/graph/DirectedGraphConnections;)I .locals 0 .line 54 iget p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->predecessorCount:I return p0 .end method .method static synthetic access$400(Ljava/lang/Object;)Z .locals 0 .line 54 invoke-static {p0}, Lcom/google/common/graph/DirectedGraphConnections;->isSuccessor(Ljava/lang/Object;)Z move-result p0 return p0 .end method .method static synthetic access$500(Lcom/google/common/graph/DirectedGraphConnections;)I .locals 0 .line 54 iget p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->successorCount:I return p0 .end method .method private static isPredecessor(Ljava/lang/Object;)Z .locals 1 .param p0 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param sget-object v0, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; if-eq p0, v0, :cond_1 .line 558 instance-of p0, p0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; if-eqz p0, :cond_0 goto :goto_0 :cond_0 const/4 p0, 0x0 goto :goto_1 :cond_1 :goto_0 const/4 p0, 0x1 :goto_1 return p0 .end method .method private static isSuccessor(Ljava/lang/Object;)Z .locals 1 .param p0 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param sget-object v0, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; if-eq p0, v0, :cond_0 if-eqz p0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method static synthetic lambda$incidentEdgeIterator$0(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; .locals 0 .line 383 invoke-static {p1, p0}, Lcom/google/common/graph/EndpointPair;->ordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; move-result-object p0 return-object p0 .end method .method static synthetic lambda$incidentEdgeIterator$1(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; .locals 0 .line 386 invoke-static {p0, p1}, Lcom/google/common/graph/EndpointPair;->ordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; move-result-object p0 return-object p0 .end method .method static synthetic lambda$incidentEdgeIterator$2(Ljava/lang/Object;Lcom/google/common/graph/DirectedGraphConnections$NodeConnection;)Lcom/google/common/graph/EndpointPair; .locals 1 .line 392 instance-of v0, p1, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ; if-eqz v0, :cond_0 .line 393 iget-object p1, p1, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection;->node:Ljava/lang/Object; invoke-static {p0, p1}, Lcom/google/common/graph/EndpointPair;->ordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; move-result-object p0 return-object p0 .line 395 :cond_0 iget-object p1, p1, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection;->node:Ljava/lang/Object; invoke-static {p1, p0}, Lcom/google/common/graph/EndpointPair;->ordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; move-result-object p0 return-object p0 .end method .method static of(Lcom/google/common/graph/ElementOrder;)Lcom/google/common/graph/DirectedGraphConnections; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/graph/ElementOrder<", "TN;>;)", "Lcom/google/common/graph/DirectedGraphConnections<", "TN;TV;>;" } .end annotation .line 161 sget-object v0, Lcom/google/common/graph/DirectedGraphConnections$5;->$SwitchMap$com$google$common$graph$ElementOrder$Type:[I invoke-virtual {p0}, Lcom/google/common/graph/ElementOrder;->type()Lcom/google/common/graph/ElementOrder$Type; move-result-object v1 invoke-virtual {v1}, Lcom/google/common/graph/ElementOrder$Type;->ordinal()I move-result v1 aget v0, v0, v1 const/4 v1, 0x1 if-eq v0, v1, :cond_1 const/4 v1, 0x2 if-ne v0, v1, :cond_0 .line 166 new-instance p0, Ljava/util/ArrayList; invoke-direct {p0}, Ljava/util/ArrayList;->()V goto :goto_0 .line 169 :cond_0 new-instance v0, Ljava/lang/AssertionError; invoke-virtual {p0}, Lcom/google/common/graph/ElementOrder;->type()Lcom/google/common/graph/ElementOrder$Type; move-result-object p0 invoke-direct {v0, p0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V throw v0 :cond_1 const/4 p0, 0x0 .line 172 :goto_0 new-instance v0, Lcom/google/common/graph/DirectedGraphConnections; new-instance v1, Ljava/util/HashMap; const/high16 v2, 0x3f800000 # 1.0f const/4 v3, 0x4 invoke-direct {v1, v3, v2}, Ljava/util/HashMap;->(IF)V const/4 v2, 0x0 invoke-direct {v0, v1, p0, v2, v2}, Lcom/google/common/graph/DirectedGraphConnections;->(Ljava/util/Map;Ljava/util/List;II)V return-object v0 .end method .method static ofImmutable(Ljava/lang/Object;Ljava/lang/Iterable;Lcom/google/common/base/Function;)Lcom/google/common/graph/DirectedGraphConnections; .locals 9 .annotation system Ldalvik/annotation/Signature; value = { "(TN;", "Ljava/lang/Iterable<", "Lcom/google/common/graph/EndpointPair<", "TN;>;>;", "Lcom/google/common/base/Function<", "TN;TV;>;)", "Lcom/google/common/graph/DirectedGraphConnections<", "TN;TV;>;" } .end annotation .line 181 invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 182 invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; .line 184 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V .line 186 invoke-static {}, Lcom/google/common/collect/ImmutableList;->builder()Lcom/google/common/collect/ImmutableList$Builder; move-result-object v1 .line 190 invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object p1 const/4 v2, 0x0 move v3, v2 move v4, v3 :goto_0 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v5 if-eqz v5, :cond_5 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v5 check-cast v5, Lcom/google/common/graph/EndpointPair; .line 191 invoke-virtual {v5}, Lcom/google/common/graph/EndpointPair;->nodeU()Ljava/lang/Object; move-result-object v6 invoke-virtual {v6, p0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v6 if-eqz v6, :cond_0 invoke-virtual {v5}, Lcom/google/common/graph/EndpointPair;->nodeV()Ljava/lang/Object; move-result-object v6 invoke-virtual {v6, p0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v6 if-eqz v6, :cond_0 .line 194 new-instance v5, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-interface {p2, p0}, Lcom/google/common/base/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v6 invoke-direct {v5, v6}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->(Ljava/lang/Object;)V invoke-interface {v0, p0, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 196 new-instance v5, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Pred; invoke-direct {v5, p0}, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Pred;->(Ljava/lang/Object;)V invoke-virtual {v1, v5}, Lcom/google/common/collect/ImmutableList$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; .line 197 new-instance v5, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ; invoke-direct {v5, p0}, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ;->(Ljava/lang/Object;)V invoke-virtual {v1, v5}, Lcom/google/common/collect/ImmutableList$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; add-int/lit8 v3, v3, 0x1 :goto_1 add-int/lit8 v4, v4, 0x1 goto :goto_0 .line 200 :cond_0 invoke-virtual {v5}, Lcom/google/common/graph/EndpointPair;->nodeV()Ljava/lang/Object; move-result-object v6 invoke-virtual {v6, p0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v6 if-eqz v6, :cond_2 .line 201 invoke-virtual {v5}, Lcom/google/common/graph/EndpointPair;->nodeU()Ljava/lang/Object; move-result-object v5 sget-object v6, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; .line 203 invoke-interface {v0, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v6 if-eqz v6, :cond_1 .line 205 new-instance v7, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-direct {v7, v6}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->(Ljava/lang/Object;)V invoke-interface {v0, v5, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 208 :cond_1 new-instance v6, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Pred; invoke-direct {v6, v5}, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Pred;->(Ljava/lang/Object;)V invoke-virtual {v1, v6}, Lcom/google/common/collect/ImmutableList$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; add-int/lit8 v3, v3, 0x1 goto :goto_0 .line 211 :cond_2 invoke-virtual {v5}, Lcom/google/common/graph/EndpointPair;->nodeU()Ljava/lang/Object; move-result-object v6 invoke-virtual {v6, p0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v6 invoke-static {v6}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V .line 213 invoke-virtual {v5}, Lcom/google/common/graph/EndpointPair;->nodeV()Ljava/lang/Object; move-result-object v5 .line 214 invoke-interface {p2, v5}, Lcom/google/common/base/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v6 .line 216 invoke-interface {v0, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v7 if-eqz v7, :cond_4 sget-object v8, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; if-ne v7, v8, :cond_3 const/4 v7, 0x1 goto :goto_2 :cond_3 move v7, v2 .line 218 :goto_2 invoke-static {v7}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V .line 219 new-instance v7, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-direct {v7, v6}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->(Ljava/lang/Object;)V invoke-interface {v0, v5, v7}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 222 :cond_4 new-instance v6, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ; invoke-direct {v6, v5}, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ;->(Ljava/lang/Object;)V invoke-virtual {v1, v6}, Lcom/google/common/collect/ImmutableList$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; goto :goto_1 .line 227 :cond_5 new-instance p0, Lcom/google/common/graph/DirectedGraphConnections; .line 229 invoke-virtual {v1}, Lcom/google/common/collect/ImmutableList$Builder;->build()Lcom/google/common/collect/ImmutableList; move-result-object p1 invoke-direct {p0, v0, p1, v3, v4}, Lcom/google/common/graph/DirectedGraphConnections;->(Ljava/util/Map;Ljava/util/List;II)V return-object p0 .end method # virtual methods .method public addPredecessor(Ljava/lang/Object;Ljava/lang/Object;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(TN;TV;)V" } .end annotation iget-object p2, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; sget-object v0, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; .line 500 invoke-interface {p2, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object p2 if-nez p2, :cond_0 goto :goto_0 .line 505 :cond_0 instance-of v1, p2, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; if-eqz v1, :cond_1 iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 507 invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_1 :cond_1 if-eq p2, v0, :cond_2 iget-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 511 new-instance v1, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-direct {v1, p2}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->(Ljava/lang/Object;)V invoke-interface {v0, p1, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :goto_0 iget p2, p0, Lcom/google/common/graph/DirectedGraphConnections;->predecessorCount:I add-int/lit8 p2, p2, 0x1 iput p2, p0, Lcom/google/common/graph/DirectedGraphConnections;->predecessorCount:I .line 518 invoke-static {p2}, Lcom/google/common/graph/Graphs;->checkPositive(I)I iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->orderedNodeConnections:Ljava/util/List; if-eqz p0, :cond_2 .line 521 new-instance p2, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Pred; invoke-direct {p2, p1}, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Pred;->(Ljava/lang/Object;)V invoke-interface {p0, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z :cond_2 :goto_1 return-void .end method .method public addSuccessor(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(TN;TV;)TV;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation iget-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 530 invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 const/4 v1, 0x0 if-nez v0, :cond_0 :goto_0 move-object v0, v1 goto :goto_1 .line 535 :cond_0 instance-of v2, v0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; if-eqz v2, :cond_1 iget-object v2, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 536 new-instance v3, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-direct {v3, p2}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->(Ljava/lang/Object;)V invoke-interface {v2, p1, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 537 check-cast v0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-static {v0}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->access$600(Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;)Ljava/lang/Object; move-result-object v0 goto :goto_1 :cond_1 sget-object v2, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; if-ne v0, v2, :cond_2 iget-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 539 new-instance v2, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-direct {v2, p2}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->(Ljava/lang/Object;)V invoke-interface {v0, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 :cond_2 :goto_1 if-nez v0, :cond_3 iget p2, p0, Lcom/google/common/graph/DirectedGraphConnections;->successorCount:I add-int/lit8 p2, p2, 0x1 iput p2, p0, Lcom/google/common/graph/DirectedGraphConnections;->successorCount:I .line 546 invoke-static {p2}, Lcom/google/common/graph/Graphs;->checkPositive(I)I iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->orderedNodeConnections:Ljava/util/List; if-eqz p0, :cond_3 .line 549 new-instance p2, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ; invoke-direct {p2, p1}, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ;->(Ljava/lang/Object;)V invoke-interface {p0, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z :cond_3 if-nez v0, :cond_4 goto :goto_2 :cond_4 move-object v1, v0 :goto_2 return-object v1 .end method .method public adjacentNodes()Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set<", "TN;>;" } .end annotation iget-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->orderedNodeConnections:Ljava/util/List; if-nez v0, :cond_0 iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 237 invoke-interface {p0}, Ljava/util/Map;->keySet()Ljava/util/Set; move-result-object p0 invoke-static {p0}, Ljava/util/Collections;->unmodifiableSet(Ljava/util/Set;)Ljava/util/Set; move-result-object p0 return-object p0 .line 239 :cond_0 new-instance v0, Lcom/google/common/graph/DirectedGraphConnections$1; invoke-direct {v0, p0}, Lcom/google/common/graph/DirectedGraphConnections$1;->(Lcom/google/common/graph/DirectedGraphConnections;)V return-object v0 .end method .method public incidentEdgeIterator(Ljava/lang/Object;)Ljava/util/Iterator; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(TN;)", "Ljava/util/Iterator<", "Lcom/google/common/graph/EndpointPair<", "TN;>;>;" } .end annotation .line 375 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; iget-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->orderedNodeConnections:Ljava/util/List; if-nez v0, :cond_0 .line 382 invoke-virtual {p0}, Lcom/google/common/graph/DirectedGraphConnections;->predecessors()Ljava/util/Set; move-result-object v0 invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object v0 new-instance v1, Lcom/google/common/graph/DirectedGraphConnections$$ExternalSyntheticLambda0; invoke-direct {v1, p1}, Lcom/google/common/graph/DirectedGraphConnections$$ExternalSyntheticLambda0;->(Ljava/lang/Object;)V .line 381 invoke-static {v0, v1}, Lcom/google/common/collect/Iterators;->transform(Ljava/util/Iterator;Lcom/google/common/base/Function;)Ljava/util/Iterator; move-result-object v0 .line 385 invoke-virtual {p0}, Lcom/google/common/graph/DirectedGraphConnections;->successors()Ljava/util/Set; move-result-object v1 invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object v1 new-instance v2, Lcom/google/common/graph/DirectedGraphConnections$$ExternalSyntheticLambda1; invoke-direct {v2, p1}, Lcom/google/common/graph/DirectedGraphConnections$$ExternalSyntheticLambda1;->(Ljava/lang/Object;)V .line 384 invoke-static {v1, v2}, Lcom/google/common/collect/Iterators;->transform(Ljava/util/Iterator;Lcom/google/common/base/Function;)Ljava/util/Iterator; move-result-object p1 .line 380 invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->concat(Ljava/util/Iterator;Ljava/util/Iterator;)Ljava/util/Iterator; move-result-object p1 goto :goto_0 .line 390 :cond_0 invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v0 new-instance v1, Lcom/google/common/graph/DirectedGraphConnections$$ExternalSyntheticLambda2; invoke-direct {v1, p1}, Lcom/google/common/graph/DirectedGraphConnections$$ExternalSyntheticLambda2;->(Ljava/lang/Object;)V .line 389 invoke-static {v0, v1}, Lcom/google/common/collect/Iterators;->transform(Ljava/util/Iterator;Lcom/google/common/base/Function;)Ljava/util/Iterator; move-result-object p1 .line 400 :goto_0 new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean; const/4 v1, 0x0 invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->(Z)V .line 401 new-instance v1, Lcom/google/common/graph/DirectedGraphConnections$4; invoke-direct {v1, p0, p1, v0}, Lcom/google/common/graph/DirectedGraphConnections$4;->(Lcom/google/common/graph/DirectedGraphConnections;Ljava/util/Iterator;Ljava/util/concurrent/atomic/AtomicBoolean;)V return-object v1 .end method .method public predecessors()Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set<", "TN;>;" } .end annotation .line 275 new-instance v0, Lcom/google/common/graph/DirectedGraphConnections$2; invoke-direct {v0, p0}, Lcom/google/common/graph/DirectedGraphConnections$2;->(Lcom/google/common/graph/DirectedGraphConnections;)V return-object v0 .end method .method public removePredecessor(Ljava/lang/Object;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(TN;)V" } .end annotation .line 438 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; iget-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 440 invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 sget-object v1, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; if-ne v0, v1, :cond_0 iget-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 444 invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 .line 446 :cond_0 instance-of v1, v0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; if-eqz v1, :cond_1 iget-object v1, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 447 check-cast v0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-static {v0}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->access$600(Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;)Ljava/lang/Object; move-result-object v0 invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :goto_0 iget v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->predecessorCount:I add-int/lit8 v0, v0, -0x1 iput v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->predecessorCount:I .line 454 invoke-static {v0}, Lcom/google/common/graph/Graphs;->checkNonNegative(I)I iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->orderedNodeConnections:Ljava/util/List; if-eqz p0, :cond_1 .line 457 new-instance v0, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Pred; invoke-direct {v0, p1}, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Pred;->(Ljava/lang/Object;)V invoke-interface {p0, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z :cond_1 return-void .end method .method public removeSuccessor(Ljava/lang/Object;)Ljava/lang/Object; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/Object;", ")TV;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .line 466 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; iget-object v0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 467 invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 const/4 v1, 0x0 if-eqz v0, :cond_2 sget-object v2, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; if-ne v0, v2, :cond_0 goto :goto_0 .line 472 :cond_0 instance-of v3, v0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; if-eqz v3, :cond_1 iget-object v3, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 473 invoke-interface {v3, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 474 check-cast v0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-static {v0}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->access$600(Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;)Ljava/lang/Object; move-result-object v0 goto :goto_1 :cond_1 iget-object v2, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 476 invoke-interface {v2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object; goto :goto_1 :cond_2 :goto_0 move-object v0, v1 :goto_1 if-eqz v0, :cond_3 iget v2, p0, Lcom/google/common/graph/DirectedGraphConnections;->successorCount:I add-int/lit8 v2, v2, -0x1 iput v2, p0, Lcom/google/common/graph/DirectedGraphConnections;->successorCount:I .line 481 invoke-static {v2}, Lcom/google/common/graph/Graphs;->checkNonNegative(I)I iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->orderedNodeConnections:Ljava/util/List; if-eqz p0, :cond_3 .line 484 new-instance v2, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ; invoke-direct {v2, p1}, Lcom/google/common/graph/DirectedGraphConnections$NodeConnection$Succ;->(Ljava/lang/Object;)V invoke-interface {p0, v2}, Ljava/util/List;->remove(Ljava/lang/Object;)Z :cond_3 if-nez v0, :cond_4 goto :goto_2 :cond_4 move-object v1, v0 :goto_2 return-object v1 .end method .method public successors()Ljava/util/Set; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set<", "TN;>;" } .end annotation .line 325 new-instance v0, Lcom/google/common/graph/DirectedGraphConnections$3; invoke-direct {v0, p0}, Lcom/google/common/graph/DirectedGraphConnections$3;->(Lcom/google/common/graph/DirectedGraphConnections;)V return-object v0 .end method .method public value(Ljava/lang/Object;)Ljava/lang/Object; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TN;)TV;" } .end annotation .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .line 424 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; iget-object p0, p0, Lcom/google/common/graph/DirectedGraphConnections;->adjacentNodeValues:Ljava/util/Map; .line 425 invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p0 sget-object p1, Lcom/google/common/graph/DirectedGraphConnections;->PRED:Ljava/lang/Object; if-ne p0, p1, :cond_0 const/4 p0, 0x0 return-object p0 .line 429 :cond_0 instance-of p1, p0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; if-eqz p1, :cond_1 .line 430 check-cast p0, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc; invoke-static {p0}, Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;->access$600(Lcom/google/common/graph/DirectedGraphConnections$PredAndSucc;)Ljava/lang/Object; move-result-object p0 :cond_1 return-object p0 .end method