@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup(Topology.EMPTY, Topology.EMPTY, new Topology(ImmutableSortedSet.of())) .addEqualityGroup(new Topology(_bothEdges)) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Topology)) { return false; } return _edges.equals(((Topology) obj)._edges); }
Topology implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Topology)) { return false; } return _edges.equals(((Topology) obj)._edges); } }
Topology implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Topology)) { return false; } return _edges.equals(((Topology) obj)._edges); } Topology(SortedSet<Edge> edges); }
Topology implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Topology)) { return false; } return _edges.equals(((Topology) obj)._edges); } Topology(SortedSet<Edge> edges); @JsonIgnore SortedSet<Edge> getEdges(); @Nonnull SortedSet<NodeInterfacePair> getNeighbors(NodeInterfacePair iface); @JsonIgnore Map<String, SortedSet<Edge>> getNodeEdges(); Topology prune(
      @Nonnull Set<Edge> blacklistEdges,
      @Nonnull Set<String> blacklistNodes,
      @Nonnull Set<NodeInterfacePair> blacklistInterfaces); @JsonValue SortedSet<Edge> sortedEdges(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
Topology implements Serializable { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Topology)) { return false; } return _edges.equals(((Topology) obj)._edges); } Topology(SortedSet<Edge> edges); @JsonIgnore SortedSet<Edge> getEdges(); @Nonnull SortedSet<NodeInterfacePair> getNeighbors(NodeInterfacePair iface); @JsonIgnore Map<String, SortedSet<Edge>> getNodeEdges(); Topology prune(
      @Nonnull Set<Edge> blacklistEdges,
      @Nonnull Set<String> blacklistNodes,
      @Nonnull Set<NodeInterfacePair> blacklistInterfaces); @JsonValue SortedSet<Edge> sortedEdges(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); static final Topology EMPTY; }