@Test public void testGetFilterConjuncts() { String filter = "'tag1' and 'tag2'"; assertThat(getFilterConjuncts(filter), contains("tag1", "tag2")); }
@VisibleForTesting static Set<String> getFilterConjuncts(String filter) { return Arrays.stream(filter.split(" and ")) .map(AddressGroup::unquote) .collect(ImmutableSet.toImmutableSet()); }
AddressGroup implements Serializable { @VisibleForTesting static Set<String> getFilterConjuncts(String filter) { return Arrays.stream(filter.split(" and ")) .map(AddressGroup::unquote) .collect(ImmutableSet.toImmutableSet()); } }
AddressGroup implements Serializable { @VisibleForTesting static Set<String> getFilterConjuncts(String filter) { return Arrays.stream(filter.split(" and ")) .map(AddressGroup::unquote) .collect(ImmutableSet.toImmutableSet()); } AddressGroup(String name); }
AddressGroup implements Serializable { @VisibleForTesting static Set<String> getFilterConjuncts(String filter) { return Arrays.stream(filter.split(" and ")) .map(AddressGroup::unquote) .collect(ImmutableSet.toImmutableSet()); } AddressGroup(String name); IpSpace getIpSpace(
      Map<String, AddressObject> addressObjects, Map<String, AddressGroup> addressGroups); RangeSet<Ip> getIpRangeSet(
      Map<String, AddressObject> addressObjects, Map<String, AddressGroup> addressGroups); @Nullable String getDescription(); @Nullable String getFilter(); void addMember(String member); Set<String> getMembers(); String getName(); @Nonnull Set<String> getTags(); @Nullable Type getType(); void setDescription(String description); void setFilter(String filter); }
AddressGroup implements Serializable { @VisibleForTesting static Set<String> getFilterConjuncts(String filter) { return Arrays.stream(filter.split(" and ")) .map(AddressGroup::unquote) .collect(ImmutableSet.toImmutableSet()); } AddressGroup(String name); IpSpace getIpSpace(
      Map<String, AddressObject> addressObjects, Map<String, AddressGroup> addressGroups); RangeSet<Ip> getIpRangeSet(
      Map<String, AddressObject> addressObjects, Map<String, AddressGroup> addressGroups); @Nullable String getDescription(); @Nullable String getFilter(); void addMember(String member); Set<String> getMembers(); String getName(); @Nonnull Set<String> getTags(); @Nullable Type getType(); void setDescription(String description); void setFilter(String filter);  }