@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new NamedCommunitySet(COMMUNITY_LIST_NAME), new NamedCommunitySet(COMMUNITY_LIST_NAME)) .addEqualityGroup(new NamedCommunitySet("other")) .testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof NamedCommunitySet)) { return false; } return _name.equals(((NamedCommunitySet) obj)._name); }
NamedCommunitySet extends CommunitySetExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof NamedCommunitySet)) { return false; } return _name.equals(((NamedCommunitySet) obj)._name); } }
NamedCommunitySet extends CommunitySetExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof NamedCommunitySet)) { return false; } return _name.equals(((NamedCommunitySet) obj)._name); } NamedCommunitySet(@Nonnull String name); }
NamedCommunitySet extends CommunitySetExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof NamedCommunitySet)) { return false; } return _name.equals(((NamedCommunitySet) obj)._name); } NamedCommunitySet(@Nonnull String name); @Override T accept(CommunitySetExprVisitor<T> visitor); @Override void accept(VoidCommunitySetExprVisitor visitor); @Nonnull @Override Set<Community> asLiteralCommunities(@Nonnull Environment environment); @Override final boolean dynamicMatchCommunity(); @Override boolean equals(Object obj); @JsonProperty(PROP_NAME) String getName(); @Override int hashCode(); @Override boolean matchAnyCommunity(Environment environment, Set<Community> communityCandidates); @Override boolean matchCommunities(Environment environment, Set<Community> communitySetCandidate); @Override boolean matchCommunity(Environment environment, Community community); @Override Set<Community> matchedCommunities(
      Environment environment, Set<Community> communityCandidates); @Override boolean reducible(); }
NamedCommunitySet extends CommunitySetExpr { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof NamedCommunitySet)) { return false; } return _name.equals(((NamedCommunitySet) obj)._name); } NamedCommunitySet(@Nonnull String name); @Override T accept(CommunitySetExprVisitor<T> visitor); @Override void accept(VoidCommunitySetExprVisitor visitor); @Nonnull @Override Set<Community> asLiteralCommunities(@Nonnull Environment environment); @Override final boolean dynamicMatchCommunity(); @Override boolean equals(Object obj); @JsonProperty(PROP_NAME) String getName(); @Override int hashCode(); @Override boolean matchAnyCommunity(Environment environment, Set<Community> communityCandidates); @Override boolean matchCommunities(Environment environment, Set<Community> communitySetCandidate); @Override boolean matchCommunity(Environment environment, Community community); @Override Set<Community> matchedCommunities(
      Environment environment, Set<Community> communityCandidates); @Override boolean reducible();  }