@Test public void testEquals() { new EqualsTester() .addEqualityGroup( EDGE, Edge.of(EDGE.getNode1(), EDGE.getInt1(), EDGE.getNode2(), EDGE.getInt2()), new Edge(EDGE.getTail(), EDGE.getHead())) .addEqualityGroup(EDGE.reverse(), new Edge(EDGE.getHead(), EDGE.getTail())) .addEqualityGroup( Edge.of(EDGE.getNode1() + '1', EDGE.getInt1(), EDGE.getNode2(), EDGE.getInt2())) .addEqualityGroup( Edge.of(EDGE.getNode1(), EDGE.getInt1() + '1', EDGE.getNode2(), EDGE.getInt2())) .addEqualityGroup( Edge.of(EDGE.getNode1(), EDGE.getInt1(), EDGE.getNode2() + '1', EDGE.getInt2())) .addEqualityGroup( Edge.of(EDGE.getNode1(), EDGE.getInt1(), EDGE.getNode2(), EDGE.getInt2() + '1')) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Edge)) { return false; } Edge edge = (Edge) o; return Objects.equals(_tail, edge._tail) && Objects.equals(_head, edge._head); }
Edge implements Serializable, Comparable<Edge> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Edge)) { return false; } Edge edge = (Edge) o; return Objects.equals(_tail, edge._tail) && Objects.equals(_head, edge._head); } }
Edge implements Serializable, Comparable<Edge> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Edge)) { return false; } Edge edge = (Edge) o; return Objects.equals(_tail, edge._tail) && Objects.equals(_head, edge._head); } Edge(NodeInterfacePair tail, NodeInterfacePair head);  Edge(Interface tail, Interface head); }
Edge implements Serializable, Comparable<Edge> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Edge)) { return false; } Edge edge = (Edge) o; return Objects.equals(_tail, edge._tail) && Objects.equals(_head, edge._head); } Edge(NodeInterfacePair tail, NodeInterfacePair head);  Edge(Interface tail, Interface head); static Edge of(
      String tailNode, String tailInterface, String headNode, String headInterface); @JsonProperty(PROP_INT1) String getInt1(); @JsonProperty(PROP_INT2) String getInt2(); @Deprecated @JsonIgnore @Nonnull NodeInterfacePair getInterface1(); @JsonIgnore @Nonnull NodeInterfacePair getTail(); @JsonIgnore @Deprecated @Nonnull NodeInterfacePair getInterface2(); @JsonIgnore @Nonnull NodeInterfacePair getHead(); Edge reverse(); @JsonProperty(PROP_NODE1) String getNode1(); @JsonProperty(PROP_NODE2) String getNode2(); @Override int compareTo(Edge other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Edge implements Serializable, Comparable<Edge> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Edge)) { return false; } Edge edge = (Edge) o; return Objects.equals(_tail, edge._tail) && Objects.equals(_head, edge._head); } Edge(NodeInterfacePair tail, NodeInterfacePair head);  Edge(Interface tail, Interface head); static Edge of(
      String tailNode, String tailInterface, String headNode, String headInterface); @JsonProperty(PROP_INT1) String getInt1(); @JsonProperty(PROP_INT2) String getInt2(); @Deprecated @JsonIgnore @Nonnull NodeInterfacePair getInterface1(); @JsonIgnore @Nonnull NodeInterfacePair getTail(); @JsonIgnore @Deprecated @Nonnull NodeInterfacePair getInterface2(); @JsonIgnore @Nonnull NodeInterfacePair getHead(); Edge reverse(); @JsonProperty(PROP_NODE1) String getNode1(); @JsonProperty(PROP_NODE2) String getNode2(); @Override int compareTo(Edge other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }