@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup( EigrpTopology.EMPTY, EigrpTopology.EMPTY, new EigrpTopology( NetworkBuilder.directed() .allowsParallelEdges(false) .allowsSelfLoops(false) .build())) .addEqualityGroup(nonTrivialTopology()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof EigrpTopology)) { return false; } return _network.equals(((EigrpTopology) obj)._network); }
EigrpTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof EigrpTopology)) { return false; } return _network.equals(((EigrpTopology) obj)._network); } }
EigrpTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof EigrpTopology)) { return false; } return _network.equals(((EigrpTopology) obj)._network); } EigrpTopology(Network<EigrpNeighborConfigId, EigrpEdge> network); }
EigrpTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof EigrpTopology)) { return false; } return _network.equals(((EigrpTopology) obj)._network); } EigrpTopology(Network<EigrpNeighborConfigId, EigrpEdge> network); @JsonIgnore @Nonnull Network<EigrpNeighborConfigId, EigrpEdge> getNetwork(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
EigrpTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof EigrpTopology)) { return false; } return _network.equals(((EigrpTopology) obj)._network); } EigrpTopology(Network<EigrpNeighborConfigId, EigrpEdge> network); @JsonIgnore @Nonnull Network<EigrpNeighborConfigId, EigrpEdge> getNetwork(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); static final EigrpTopology EMPTY; }