@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup( IsisTopology.EMPTY, IsisTopology.EMPTY, new IsisTopology( 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 IsisTopology)) { return false; } return _network.equals(((IsisTopology) obj)._network); }
IsisTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof IsisTopology)) { return false; } return _network.equals(((IsisTopology) obj)._network); } }
IsisTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof IsisTopology)) { return false; } return _network.equals(((IsisTopology) obj)._network); } IsisTopology(Network<IsisNode, IsisEdge> network); }
IsisTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof IsisTopology)) { return false; } return _network.equals(((IsisTopology) obj)._network); } IsisTopology(Network<IsisNode, IsisEdge> network); static @Nonnull IsisTopology initIsisTopology(
      Map<String, Configuration> configurations, Topology topology); @JsonIgnore @Nonnull Network<IsisNode, IsisEdge> getNetwork(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
IsisTopology { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof IsisTopology)) { return false; } return _network.equals(((IsisTopology) obj)._network); } IsisTopology(Network<IsisNode, IsisEdge> network); static @Nonnull IsisTopology initIsisTopology(
      Map<String, Configuration> configurations, Topology topology); @JsonIgnore @Nonnull Network<IsisNode, IsisEdge> getNetwork(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); static final IsisTopology EMPTY; }