@Test public void testEquals() { new EqualsTester() .addEqualityGroup(OBJ, OBJ, new LiteralCommunitySet(CommunitySet.empty())) .addEqualityGroup(new LiteralCommunitySet(CommunitySet.of(StandardCommunity.of(1L)))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunitySet)) { return false; } return _communitySet.equals(((LiteralCommunitySet) obj)._communitySet); }
LiteralCommunitySet extends CommunitySetExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunitySet)) { return false; } return _communitySet.equals(((LiteralCommunitySet) obj)._communitySet); } }
LiteralCommunitySet extends CommunitySetExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunitySet)) { return false; } return _communitySet.equals(((LiteralCommunitySet) obj)._communitySet); } LiteralCommunitySet(CommunitySet communitySet); }
LiteralCommunitySet extends CommunitySetExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunitySet)) { return false; } return _communitySet.equals(((LiteralCommunitySet) obj)._communitySet); } LiteralCommunitySet(CommunitySet communitySet); @Override T accept(CommunitySetExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_COMMUNITY_SET) @Nonnull CommunitySet getCommunitySet(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
LiteralCommunitySet extends CommunitySetExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof LiteralCommunitySet)) { return false; } return _communitySet.equals(((LiteralCommunitySet) obj)._communitySet); } LiteralCommunitySet(CommunitySet communitySet); @Override T accept(CommunitySetExprVisitor<T, U> visitor, U arg); @JsonProperty(PROP_COMMUNITY_SET) @Nonnull CommunitySet getCommunitySet(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }