@Test public void testMatchCommunity() { NamedCommunitySet expr = new NamedCommunitySet(COMMUNITY_LIST_NAME); assertThat(expr, matchCommunity(_env, StandardCommunity.of(1L))); assertThat(expr, not(matchCommunity(_env, StandardCommunity.of(2L)))); }
@Override public boolean matchCommunity(Environment environment, Community community) { return environment.getCommunityLists().get(_name).matchCommunity(environment, community); }
NamedCommunitySet extends CommunitySetExpr { @Override public boolean matchCommunity(Environment environment, Community community) { return environment.getCommunityLists().get(_name).matchCommunity(environment, community); } }
NamedCommunitySet extends CommunitySetExpr { @Override public boolean matchCommunity(Environment environment, Community community) { return environment.getCommunityLists().get(_name).matchCommunity(environment, community); } NamedCommunitySet(@Nonnull String name); }
NamedCommunitySet extends CommunitySetExpr { @Override public boolean matchCommunity(Environment environment, Community community) { return environment.getCommunityLists().get(_name).matchCommunity(environment, community); } 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 matchCommunity(Environment environment, Community community) { return environment.getCommunityLists().get(_name).matchCommunity(environment, community); } 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();  }