@Test @SuppressWarnings("unchecked") public void addFilterEntryConditionCreatorExclusively() { query.put("id__in", "1"); query.put("id__in", "2"); query.put("id__eq", "3"); ParsedQuery<Spec> parsed = parser.parse(query); BoundFilterEntry<Spec> idFilter = new MultiValuedBoundFilterEntry<>( parsed.getMetaData().getNewBoundFilterEntry("id", Equal.class), ImmutableSet.of(4)); parsed.addFilterEntryConditionCreatorExclusively("id", idFilter); assertThat(parsed.getBoundFilterEntries()).hasSize(1); assertThat(((MultiValuedBoundFilterEntry<Spec>) parsed.getBoundFilterEntries().get(0)).getValues()).hasSize(1); assertThat((Set<Integer>) ((MultiValuedBoundFilterEntry<Spec>) parsed.getBoundFilterEntries().get(0)).getValues()) .containsExactly(4); }
public void addFilterEntryConditionCreatorExclusively(String fieldName, FilterEntryConditionCreator<T> filterEntryConditionCreator) { removeFiltersFor(fieldName); combinedConditionCreator.addConditionCreator(filterEntryConditionCreator); }
ParsedQuery { public void addFilterEntryConditionCreatorExclusively(String fieldName, FilterEntryConditionCreator<T> filterEntryConditionCreator) { removeFiltersFor(fieldName); combinedConditionCreator.addConditionCreator(filterEntryConditionCreator); } }
ParsedQuery { public void addFilterEntryConditionCreatorExclusively(String fieldName, FilterEntryConditionCreator<T> filterEntryConditionCreator) { removeFiltersFor(fieldName); combinedConditionCreator.addConditionCreator(filterEntryConditionCreator); } ParsedQuery(
                     T boundQuerySpec,
                     Class<T> queryType,
                     List<BoundFilterEntry<T>> boundFilterEntries,
                     MetaQuerySpec<T> meta,
                     Optional<Integer> limit,
                     Optional<Integer> offset,
                     Collection<Ordering> orderings,
                     boolean includeDeleted);  ParsedQuery(
                     T boundQuerySpec,
                     Class<T> queryType,
                     CombinedConditionCreator<T> combinedConditionCreator,
                     MetaQuerySpec<T> meta,
                     Optional<Integer> limit,
                     Optional<Integer> offset,
                     Collection<Ordering> orderings,
                     boolean includeDeleted); }
ParsedQuery { public void addFilterEntryConditionCreatorExclusively(String fieldName, FilterEntryConditionCreator<T> filterEntryConditionCreator) { removeFiltersFor(fieldName); combinedConditionCreator.addConditionCreator(filterEntryConditionCreator); } ParsedQuery(
                     T boundQuerySpec,
                     Class<T> queryType,
                     List<BoundFilterEntry<T>> boundFilterEntries,
                     MetaQuerySpec<T> meta,
                     Optional<Integer> limit,
                     Optional<Integer> offset,
                     Collection<Ordering> orderings,
                     boolean includeDeleted);  ParsedQuery(
                     T boundQuerySpec,
                     Class<T> queryType,
                     CombinedConditionCreator<T> combinedConditionCreator,
                     MetaQuerySpec<T> meta,
                     Optional<Integer> limit,
                     Optional<Integer> offset,
                     Collection<Ordering> orderings,
                     boolean includeDeleted); boolean hasFilter(String fieldName); boolean hasFilter(String fieldName, Class<? extends Filter> filterType); void addFilter(String fieldName, Class<? extends Filter> filterType, Object value); void addOrdering(String fieldName, SortOrder order); void addFilterExclusively(String fieldName, Class<? extends Filter> filterType, Object value); void addFilterEntryConditionCreatorExclusively(String fieldName,
                                                        FilterEntryConditionCreator<T> filterEntryConditionCreator); boolean removeFiltersFor(String fieldName); @Deprecated BoundFilterEntry<T> getFirstFilterForFieldName(String fieldName); List<BoundFilterEntry<T>> getAllFiltersForFieldName(String fieldName); void removeAllFilters(); String getCacheKey(); void setLimit(Optional<Integer> limit); void setOffset(Optional<Integer> offset); void setOrderings(Collection<Ordering> orderings); Optional<Integer> getLimit(); Optional<Integer> getOffset(); Collection<Ordering> getOrderings(); boolean getIncludeDeleted(); @Deprecated T getBoundQuery(); List<BoundFilterEntry<T>> getBoundFilterEntries(); CombinedConditionCreator<T> getCombinedConditionCreator(); Class<T> getQueryType(); MetaQuerySpec<T> getMetaData(); @Override ParsedQuery<T> clone(); }
ParsedQuery { public void addFilterEntryConditionCreatorExclusively(String fieldName, FilterEntryConditionCreator<T> filterEntryConditionCreator) { removeFiltersFor(fieldName); combinedConditionCreator.addConditionCreator(filterEntryConditionCreator); } ParsedQuery(
                     T boundQuerySpec,
                     Class<T> queryType,
                     List<BoundFilterEntry<T>> boundFilterEntries,
                     MetaQuerySpec<T> meta,
                     Optional<Integer> limit,
                     Optional<Integer> offset,
                     Collection<Ordering> orderings,
                     boolean includeDeleted);  ParsedQuery(
                     T boundQuerySpec,
                     Class<T> queryType,
                     CombinedConditionCreator<T> combinedConditionCreator,
                     MetaQuerySpec<T> meta,
                     Optional<Integer> limit,
                     Optional<Integer> offset,
                     Collection<Ordering> orderings,
                     boolean includeDeleted); boolean hasFilter(String fieldName); boolean hasFilter(String fieldName, Class<? extends Filter> filterType); void addFilter(String fieldName, Class<? extends Filter> filterType, Object value); void addOrdering(String fieldName, SortOrder order); void addFilterExclusively(String fieldName, Class<? extends Filter> filterType, Object value); void addFilterEntryConditionCreatorExclusively(String fieldName,
                                                        FilterEntryConditionCreator<T> filterEntryConditionCreator); boolean removeFiltersFor(String fieldName); @Deprecated BoundFilterEntry<T> getFirstFilterForFieldName(String fieldName); List<BoundFilterEntry<T>> getAllFiltersForFieldName(String fieldName); void removeAllFilters(); String getCacheKey(); void setLimit(Optional<Integer> limit); void setOffset(Optional<Integer> offset); void setOrderings(Collection<Ordering> orderings); Optional<Integer> getLimit(); Optional<Integer> getOffset(); Collection<Ordering> getOrderings(); boolean getIncludeDeleted(); @Deprecated T getBoundQuery(); List<BoundFilterEntry<T>> getBoundFilterEntries(); CombinedConditionCreator<T> getCombinedConditionCreator(); Class<T> getQueryType(); MetaQuerySpec<T> getMetaData(); @Override ParsedQuery<T> clone();  }