@Test public void testAsLiteralCommunities() { LiteralCommunityConjunction l = new LiteralCommunityConjunction( ImmutableSet.of(StandardCommunity.of(1L), StandardCommunity.of(2L))); _thrown.expect(UnsupportedOperationException.class); l.asLiteralCommunities(null); }
@Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a set of literal communities"); }
LiteralCommunityConjunction extends CommunitySetExpr { @Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a set of literal communities"); } }
LiteralCommunityConjunction extends CommunitySetExpr { @Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a set of literal communities"); } LiteralCommunityConjunction(@Nonnull Collection<? extends Community> requiredCommunities); }
LiteralCommunityConjunction extends CommunitySetExpr { @Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a set of literal communities"); } LiteralCommunityConjunction(@Nonnull Collection<? extends Community> requiredCommunities); @Override T accept(CommunitySetExprVisitor<T> visitor); @Override void accept(VoidCommunitySetExprVisitor visitor); @Nonnull @Override Set<Community> asLiteralCommunities(@Nonnull Environment environment); @Override boolean dynamicMatchCommunity(); @Override boolean equals(Object obj); Set<Community> getRequiredCommunities(); @Override int hashCode(); @Override boolean matchCommunities(Environment environment, Set<Community> communitySetCandidate); @Override boolean matchCommunity(Environment environment, Community community); @Override boolean reducible(); @Override String toString(); }
LiteralCommunityConjunction extends CommunitySetExpr { @Nonnull @Override public Set<Community> asLiteralCommunities(@Nonnull Environment environment) { throw new UnsupportedOperationException( "Cannot be represented as a set of literal communities"); } LiteralCommunityConjunction(@Nonnull Collection<? extends Community> requiredCommunities); @Override T accept(CommunitySetExprVisitor<T> visitor); @Override void accept(VoidCommunitySetExprVisitor visitor); @Nonnull @Override Set<Community> asLiteralCommunities(@Nonnull Environment environment); @Override boolean dynamicMatchCommunity(); @Override boolean equals(Object obj); Set<Community> getRequiredCommunities(); @Override int hashCode(); @Override boolean matchCommunities(Environment environment, Set<Community> communitySetCandidate); @Override boolean matchCommunity(Environment environment, Community community); @Override boolean reducible(); @Override String toString();  }