.class public abstract Lcom/google/common/graph/EndpointPair; .super Ljava/lang/Object; .source "EndpointPair.java" # interfaces .implements Ljava/lang/Iterable; # annotations .annotation build Lcom/google/common/annotations/Beta; .end annotation .annotation runtime Lcom/google/common/graph/ElementTypesAreNonnullByDefault; .end annotation .annotation runtime Lcom/google/errorprone/annotations/Immutable; containerOf = { "N" } .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/common/graph/EndpointPair$Unordered;, Lcom/google/common/graph/EndpointPair$Ordered; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Ljava/lang/Iterable<", "TN;>;" } .end annotation # instance fields .field private final nodeU:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TN;" } .end annotation .end field .field private final nodeV:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TN;" } .end annotation .end field # direct methods .method private constructor (Ljava/lang/Object;Ljava/lang/Object;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(TN;TN;)V" } .end annotation .line 2 invoke-direct {p0}, Ljava/lang/Object;->()V .line 3 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 iput-object p1, p0, Lcom/google/common/graph/EndpointPair;->nodeU:Ljava/lang/Object; .line 4 invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object p1 iput-object p1, p0, Lcom/google/common/graph/EndpointPair;->nodeV:Ljava/lang/Object; return-void .end method .method public synthetic constructor (Ljava/lang/Object;Ljava/lang/Object;Lcom/google/common/graph/EndpointPair$1;)V .locals 0 .line 1 invoke-direct {p0, p1, p2}, Lcom/google/common/graph/EndpointPair;->(Ljava/lang/Object;Ljava/lang/Object;)V return-void .end method .method public static of(Lcom/google/common/graph/Graph;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/graph/Graph<", "*>;TN;TN;)", "Lcom/google/common/graph/EndpointPair<", "TN;>;" } .end annotation .line 1 invoke-interface {p0}, Lcom/google/common/graph/Graph;->isDirected()Z move-result p0 if-eqz p0, :cond_0 invoke-static {p1, p2}, Lcom/google/common/graph/EndpointPair;->ordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; move-result-object p0 goto :goto_0 :cond_0 invoke-static {p1, p2}, Lcom/google/common/graph/EndpointPair;->unordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; move-result-object p0 :goto_0 return-object p0 .end method .method public static of(Lcom/google/common/graph/Network;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/google/common/graph/Network<", "**>;TN;TN;)", "Lcom/google/common/graph/EndpointPair<", "TN;>;" } .end annotation .line 2 invoke-interface {p0}, Lcom/google/common/graph/Network;->isDirected()Z move-result p0 if-eqz p0, :cond_0 invoke-static {p1, p2}, Lcom/google/common/graph/EndpointPair;->ordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; move-result-object p0 goto :goto_0 :cond_0 invoke-static {p1, p2}, Lcom/google/common/graph/EndpointPair;->unordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; move-result-object p0 :goto_0 return-object p0 .end method .method public static ordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(TN;TN;)", "Lcom/google/common/graph/EndpointPair<", "TN;>;" } .end annotation .line 1 new-instance v0, Lcom/google/common/graph/EndpointPair$Ordered; const/4 v1, 0x0 invoke-direct {v0, p0, p1, v1}, Lcom/google/common/graph/EndpointPair$Ordered;->(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/common/graph/EndpointPair$1;)V return-object v0 .end method .method public static unordered(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/graph/EndpointPair; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(TN;TN;)", "Lcom/google/common/graph/EndpointPair<", "TN;>;" } .end annotation .line 1 new-instance v0, Lcom/google/common/graph/EndpointPair$Unordered; const/4 v1, 0x0 invoke-direct {v0, p1, p0, v1}, Lcom/google/common/graph/EndpointPair$Unordered;->(Ljava/lang/Object;Ljava/lang/Object;Lcom/google/common/graph/EndpointPair$1;)V return-object v0 .end method # virtual methods .method public final adjacentNode(Ljava/lang/Object;)Ljava/lang/Object; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(TN;)TN;" } .end annotation .line 1 iget-object v0, p0, Lcom/google/common/graph/EndpointPair;->nodeU:Ljava/lang/Object; invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_0 .line 2 iget-object p1, p0, Lcom/google/common/graph/EndpointPair;->nodeV:Ljava/lang/Object; return-object p1 .line 3 :cond_0 iget-object v0, p0, Lcom/google/common/graph/EndpointPair;->nodeV:Ljava/lang/Object; invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 .line 4 iget-object p1, p0, Lcom/google/common/graph/EndpointPair;->nodeU:Ljava/lang/Object; return-object p1 .line 5 :cond_1 new-instance v0, Ljava/lang/IllegalArgumentException; invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v1 invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p1 invoke-virtual {v1}, Ljava/lang/String;->length()I move-result v2 add-int/lit8 v2, v2, 0x24 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v3 add-int/2addr v3, v2 const-string v2, "EndpointPair " const-string v4, " does not contain node " invoke-static {v3, v2, v1, v4, p1}, Lcom/android/billingclient/api/f;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method .method public abstract equals(Ljava/lang/Object;)Z .param p1 # Ljava/lang/Object; .annotation runtime Ljavax/annotation/CheckForNull; .end annotation .end param .end method .method public abstract hashCode()I .end method .method public abstract isOrdered()Z .end method .method public final iterator()Lcom/google/common/collect/UnmodifiableIterator; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "()", "Lcom/google/common/collect/UnmodifiableIterator<", "TN;>;" } .end annotation const/4 v0, 0x2 new-array v0, v0, [Ljava/lang/Object; .line 2 iget-object v1, p0, Lcom/google/common/graph/EndpointPair;->nodeU:Ljava/lang/Object; const/4 v2, 0x0 aput-object v1, v0, v2 iget-object v1, p0, Lcom/google/common/graph/EndpointPair;->nodeV:Ljava/lang/Object; const/4 v2, 0x1 aput-object v1, v0, v2 invoke-static {v0}, Lcom/google/common/collect/Iterators;->forArray([Ljava/lang/Object;)Lcom/google/common/collect/UnmodifiableIterator; move-result-object v0 return-object v0 .end method .method public bridge synthetic iterator()Ljava/util/Iterator; .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/common/graph/EndpointPair;->iterator()Lcom/google/common/collect/UnmodifiableIterator; move-result-object v0 return-object v0 .end method .method public final nodeU()Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()TN;" } .end annotation .line 1 iget-object v0, p0, Lcom/google/common/graph/EndpointPair;->nodeU:Ljava/lang/Object; return-object v0 .end method .method public final nodeV()Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()TN;" } .end annotation .line 1 iget-object v0, p0, Lcom/google/common/graph/EndpointPair;->nodeV:Ljava/lang/Object; return-object v0 .end method .method public abstract source()Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "()TN;" } .end annotation .end method .method public abstract target()Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "()TN;" } .end annotation .end method