@Test public void testMatchedCommunities() { NamedCommunitySet expr = new NamedCommunitySet(COMMUNITY_LIST_NAME); Set<Community> communityCandidates = ImmutableSet.of(StandardCommunity.of(1L), StandardCommunity.of(2L)); assertThat( expr, matchedCommunities(_env, communityCandidates, ImmutableSet.of(StandardCommunity.of(1L)))); }
@Override public Set<Community> matchedCommunities( Environment environment, Set<Community> communityCandidates) { return resolve(environment).matchedCommunities(environment, communityCandidates); }
NamedCommunitySet extends CommunitySetExpr { @Override public Set<Community> matchedCommunities( Environment environment, Set<Community> communityCandidates) { return resolve(environment).matchedCommunities(environment, communityCandidates); } }
NamedCommunitySet extends CommunitySetExpr { @Override public Set<Community> matchedCommunities( Environment environment, Set<Community> communityCandidates) { return resolve(environment).matchedCommunities(environment, communityCandidates); } NamedCommunitySet(@Nonnull String name); }
NamedCommunitySet extends CommunitySetExpr { @Override public Set<Community> matchedCommunities( Environment environment, Set<Community> communityCandidates) { return resolve(environment).matchedCommunities(environment, communityCandidates); } 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 Set<Community> matchedCommunities( Environment environment, Set<Community> communityCandidates) { return resolve(environment).matchedCommunities(environment, communityCandidates); } 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();  }