@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new BgpRouteDiffs(ImmutableSet.of()), new BgpRouteDiffs(ImmutableSet.of())) .addEqualityGroup( new BgpRouteDiffs(ImmutableSet.of(new BgpRouteDiff(BgpRoute.PROP_AS_PATH, "B", "C")))) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BgpRouteDiffs)) { return false; } BgpRouteDiffs that = (BgpRouteDiffs) o; return Objects.equals(_diffs, that._diffs); }
BgpRouteDiffs { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BgpRouteDiffs)) { return false; } BgpRouteDiffs that = (BgpRouteDiffs) o; return Objects.equals(_diffs, that._diffs); } }
BgpRouteDiffs { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BgpRouteDiffs)) { return false; } BgpRouteDiffs that = (BgpRouteDiffs) o; return Objects.equals(_diffs, that._diffs); } BgpRouteDiffs(Set<BgpRouteDiff> diffs); }
BgpRouteDiffs { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BgpRouteDiffs)) { return false; } BgpRouteDiffs that = (BgpRouteDiffs) o; return Objects.equals(_diffs, that._diffs); } BgpRouteDiffs(Set<BgpRouteDiff> diffs); @JsonProperty(PROP_DIFFS) SortedSet<BgpRouteDiff> getDiffs(); @Override boolean equals(Object o); @Override int hashCode(); }
BgpRouteDiffs { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BgpRouteDiffs)) { return false; } BgpRouteDiffs that = (BgpRouteDiffs) o; return Objects.equals(_diffs, that._diffs); } BgpRouteDiffs(Set<BgpRouteDiff> diffs); @JsonProperty(PROP_DIFFS) SortedSet<BgpRouteDiff> getDiffs(); @Override boolean equals(Object o); @Override int hashCode();  }