@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup( EMPTY, EMPTY, new VxlanTopology(GraphBuilder.undirected().allowsSelfLoops(false).build())) .addEqualityGroup(nonTrivialTopology()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VxlanTopology)) { return false; } return _graph.equals(((VxlanTopology) obj)._graph); }
VxlanTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VxlanTopology)) { return false; } return _graph.equals(((VxlanTopology) obj)._graph); } }
VxlanTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VxlanTopology)) { return false; } return _graph.equals(((VxlanTopology) obj)._graph); } VxlanTopology(Graph<VxlanNode> graph); }
VxlanTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VxlanTopology)) { return false; } return _graph.equals(((VxlanTopology) obj)._graph); } VxlanTopology(Graph<VxlanNode> graph); @JsonIgnore @Nonnull Graph<VxlanNode> getGraph(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
VxlanTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof VxlanTopology)) { return false; } return _graph.equals(((VxlanTopology) obj)._graph); } VxlanTopology(Graph<VxlanNode> graph); @JsonIgnore @Nonnull Graph<VxlanNode> getGraph(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); static final VxlanTopology EMPTY; }