@Test public void testEquals() { Interface i1 = Interface.builder().setName("eth0").build(); VerboseEdge edge1 = new VerboseEdge(i1, i1, Edge.of("node1", "eth0", "node2", "eth0")); assertEquals(edge1, edge1); VerboseEdge edge2 = new VerboseEdge(i1, i1, Edge.of("node2", "eth0", "node1", "eth0")); assertNotEquals(edge1, edge2); }
@Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof VerboseEdge)) { return false; } VerboseEdge other = (VerboseEdge) o; return _edgeSummary.equals(other._edgeSummary); }
VerboseEdge implements Serializable, Comparable<VerboseEdge> { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof VerboseEdge)) { return false; } VerboseEdge other = (VerboseEdge) o; return _edgeSummary.equals(other._edgeSummary); } }
VerboseEdge implements Serializable, Comparable<VerboseEdge> { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof VerboseEdge)) { return false; } VerboseEdge other = (VerboseEdge) o; return _edgeSummary.equals(other._edgeSummary); } @JsonCreator  VerboseEdge(
      @JsonProperty(PROP_NODE1_INTERFACE) Interface int1,
      @JsonProperty(PROP_NODE2_INTERFACE) Interface int2,
      @JsonProperty(PROP_EDGE_SUMMARY) Edge e); }
VerboseEdge implements Serializable, Comparable<VerboseEdge> { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof VerboseEdge)) { return false; } VerboseEdge other = (VerboseEdge) o; return _edgeSummary.equals(other._edgeSummary); } @JsonCreator  VerboseEdge(
      @JsonProperty(PROP_NODE1_INTERFACE) Interface int1,
      @JsonProperty(PROP_NODE2_INTERFACE) Interface int2,
      @JsonProperty(PROP_EDGE_SUMMARY) Edge e); @JsonProperty(PROP_EDGE_SUMMARY) Edge getEdgeSummary(); @JsonProperty(PROP_NODE1_INTERFACE) Interface getInt1(); @JsonProperty(PROP_NODE2_INTERFACE) Interface getInt2(); @Override int compareTo(VerboseEdge other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
VerboseEdge implements Serializable, Comparable<VerboseEdge> { @Override public boolean equals(Object o) { if (o == this) { return true; } else if (!(o instanceof VerboseEdge)) { return false; } VerboseEdge other = (VerboseEdge) o; return _edgeSummary.equals(other._edgeSummary); } @JsonCreator  VerboseEdge(
      @JsonProperty(PROP_NODE1_INTERFACE) Interface int1,
      @JsonProperty(PROP_NODE2_INTERFACE) Interface int2,
      @JsonProperty(PROP_EDGE_SUMMARY) Edge e); @JsonProperty(PROP_EDGE_SUMMARY) Edge getEdgeSummary(); @JsonProperty(PROP_NODE1_INTERFACE) Interface getInt1(); @JsonProperty(PROP_NODE2_INTERFACE) Interface getInt2(); @Override int compareTo(VerboseEdge other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }