@Test public void getSet() { Query query = new Query(); query.set("a", "A"); assertEquals("A", query.get("a")); query.set("a", null); assertNull(query.get("a")); query.set("b", null); assertNull(query.get("b")); }
@Override public @NonNull Query set(@NonNull String name, @Nullable Object value) { return (Query) super.set(name, value); }
Query extends AbstractQuery { @Override public @NonNull Query set(@NonNull String name, @Nullable Object value) { return (Query) super.set(name, value); } }
Query extends AbstractQuery { @Override public @NonNull Query set(@NonNull String name, @Nullable Object value) { return (Query) super.set(name, value); } Query();  Query(CharSequence query);  Query(@NonNull Query other); }
Query extends AbstractQuery { @Override public @NonNull Query set(@NonNull String name, @Nullable Object value) { return (Query) super.set(name, value); } Query();  Query(CharSequence query);  Query(@NonNull Query other); @NonNull Query setAdvancedSyntax(@Nullable Boolean enabled); @Nullable Boolean getAdvancedSyntax(); @NonNull Query setAllowTyposOnNumericTokens(@Nullable Boolean enabled); @Nullable Boolean getAllowTyposOnNumericTokens(); @NonNull Query setClickAnalytics(@Nullable Boolean enabled); @Nullable Boolean getClickAnalytics(); @NonNull Query setAnalytics(@Nullable Boolean enabled); @Nullable Boolean getAnalytics(); @NonNull Query setAnalyticsTags(String... tags); String[] getAnalyticsTags(); @NonNull Query setAroundLatLng(@Nullable LatLng location); @Nullable LatLng getAroundLatLng(); @NonNull Query setAroundLatLngViaIP(@Nullable Boolean enabled); @Nullable Boolean getAroundLatLngViaIP(); @NonNull Query setAroundPrecision(Integer precision); Integer getAroundPrecision(); @NonNull Query setAroundRadius(Integer radius); Integer getAroundRadius(); @Deprecated @NonNull Query setAttributesToHighlight(List<String> attributes); @NonNull Query setAttributesToHighlight(String... attributes); String[] getAttributesToHighlight(); @Deprecated @NonNull Query setAttributesToRetrieve(List<String> attributes); @NonNull Query setAttributesToRetrieve(String... attributes); String[] getAttributesToRetrieve(); @NonNull Query setAttributesToSnippet(String... attributes); String[] getAttributesToSnippet(); @NonNull Query setDisableExactOnAttributes(String... attributes); String[] getDisableExactOnAttributes(); @NonNull Query setDisableTypoToleranceOnAttributes(String... attributes); String[] getDisableTypoToleranceOnAttributes(); @NonNull Query setDistinct(Integer nbHitsToKeep); Integer getDistinct(); @NonNull Query setFacets(String... facets); String[] getFacets(); @NonNull Query setFacetFilters(JSONArray filters); @Nullable JSONArray getFacetFilters(); @Nullable Boolean getFacetingAfterDistinct(); @NonNull Query setFacetingAfterDistinct(@Nullable Boolean enabled); @NonNull Query setFilters(String filters); @Nullable String getFilters(); @NonNull Query setGetRankingInfo(@Nullable Boolean enabled); @Nullable Boolean getGetRankingInfo(); @NonNull Query setHighlightPostTag(String tag); @Nullable String getHighlightPostTag(); @NonNull Query setHighlightPreTag(String tag); @Nullable String getHighlightPreTag(); @NonNull Query setHitsPerPage(Integer nbHitsPerPage); Integer getHitsPerPage(); @NonNull Query setIgnorePlurals(@Nullable Boolean enabled); @NonNull Query setIgnorePlurals(@Nullable Collection<String> languageISOCodes); @NonNull Query setIgnorePlurals(@Nullable String... languageISOCodes); @NonNull IgnorePlurals getIgnorePlurals(); @NonNull Query setInsideBoundingBox(@Nullable GeoRect... boxes); @Nullable GeoRect[] getInsideBoundingBox(); @NonNull Query setInsidePolygon(@Nullable LatLng... points); @NonNull Query setInsidePolygon(@Nullable Polygon... polygons); @Nullable Polygon[] getInsidePolygon(); @NonNull Query setLength(Integer n); Integer getLength(); @NonNull Query setMaxFacetHits(Integer n); Integer getMaxFacetHits(); @NonNull Query setMaxValuesPerFacet(Integer n); Integer getMaxValuesPerFacet(); @NonNull Query setMinimumAroundRadius(Integer minimumAroundRadius); Integer getMinimumAroundRadius(); @NonNull Query setMinProximity(Integer nbChars); Integer getMinProximity(); @NonNull Query setMinWordSizefor1Typo(Integer nbChars); Integer getMinWordSizefor1Typo(); @NonNull Query setMinWordSizefor2Typos(Integer nbChars); Integer getMinWordSizefor2Typos(); @NonNull Query setNumericFilters(JSONArray filters); @Nullable JSONArray getNumericFilters(); @NonNull Query setOffset(int offset); Integer getOffset(); @NonNull Query setOptionalWords(String... words); String[] getOptionalWords(); @NonNull Query setOptionalFilters(String... filters); String[] getOptionalFilters(); @NonNull Query setPage(Integer page); Integer getPage(); @NonNull Query setPercentileComputation(@Nullable Boolean enabled); @Nullable Boolean getPercentileComputation(); @NonNull Query setQuery(CharSequence query); @Nullable String getQuery(); @NonNull Query setQueryType(@Nullable QueryType type); @Nullable QueryType getQueryType(); @NonNull Query setRemoveStopWords(Object removeStopWords); @Nullable Object getRemoveStopWords(); @NonNull Query setRemoveWordsIfNoResults(@Nullable RemoveWordsIfNoResults type); @Nullable RemoveWordsIfNoResults getRemoveWordsIfNoResults(); @NonNull Query setReplaceSynonymsInHighlight(@Nullable Boolean enabled); @Nullable Boolean getReplaceSynonymsInHighlight(); @NonNull Query setRestrictHighlightAndSnippetArrays(@Nullable Boolean restrict); @Nullable Boolean getRestrictHighlightAndSnippetArrays(); @NonNull Query setRestrictSearchableAttributes(String... attributes); String[] getRestrictSearchableAttributes(); @NonNull Query setRuleContexts(String... ruleContexts); @Nullable String[] getRuleContexts(); @NonNull Query setSnippetEllipsisText(String snippetEllipsisText); @Nullable String getSnippetEllipsisText(); @NonNull Query setSortFacetValuesBy(SortFacetValuesBy order); SortFacetValuesBy getSortFacetValuesBy(); @NonNull Query setSumOrFiltersScores(@Nullable Boolean enabled); @Nullable Boolean getSumOrFiltersScores(); @NonNull Query setSynonyms(@Nullable Boolean enabled); @Nullable Boolean getSynonyms(); @NonNull Query setTagFilters(JSONArray tagFilters); @Nullable JSONArray getTagFilters(); @NonNull Query setTypoTolerance(@Nullable TypoTolerance type); @Nullable TypoTolerance getTypoTolerance(); @NonNull Query setExactOnSingleWordQuery(@Nullable ExactOnSingleWordQuery type); @Nullable ExactOnSingleWordQuery getExactOnSingleWordQuery(); @NonNull Query setEnablePersonalization(@Nullable Boolean enabled); @Nullable Boolean getEnablePersonalization(); @NonNull Query setEnableRules(@Nullable Boolean enabled); @Nullable Boolean getEnableRules(); @NonNull Query setAlternativesAsExact(@Nullable AlternativesAsExact[] types); @Nullable AlternativesAsExact[] getAlternativesAsExact(); @NonNull Query setResponseFields(String... attributes); String[] getResponseFields(); @Override @NonNull Query set(@NonNull String name, @Nullable Object value); }
Query extends AbstractQuery { @Override public @NonNull Query set(@NonNull String name, @Nullable Object value) { return (Query) super.set(name, value); } Query();  Query(CharSequence query);  Query(@NonNull Query other); @NonNull Query setAdvancedSyntax(@Nullable Boolean enabled); @Nullable Boolean getAdvancedSyntax(); @NonNull Query setAllowTyposOnNumericTokens(@Nullable Boolean enabled); @Nullable Boolean getAllowTyposOnNumericTokens(); @NonNull Query setClickAnalytics(@Nullable Boolean enabled); @Nullable Boolean getClickAnalytics(); @NonNull Query setAnalytics(@Nullable Boolean enabled); @Nullable Boolean getAnalytics(); @NonNull Query setAnalyticsTags(String... tags); String[] getAnalyticsTags(); @NonNull Query setAroundLatLng(@Nullable LatLng location); @Nullable LatLng getAroundLatLng(); @NonNull Query setAroundLatLngViaIP(@Nullable Boolean enabled); @Nullable Boolean getAroundLatLngViaIP(); @NonNull Query setAroundPrecision(Integer precision); Integer getAroundPrecision(); @NonNull Query setAroundRadius(Integer radius); Integer getAroundRadius(); @Deprecated @NonNull Query setAttributesToHighlight(List<String> attributes); @NonNull Query setAttributesToHighlight(String... attributes); String[] getAttributesToHighlight(); @Deprecated @NonNull Query setAttributesToRetrieve(List<String> attributes); @NonNull Query setAttributesToRetrieve(String... attributes); String[] getAttributesToRetrieve(); @NonNull Query setAttributesToSnippet(String... attributes); String[] getAttributesToSnippet(); @NonNull Query setDisableExactOnAttributes(String... attributes); String[] getDisableExactOnAttributes(); @NonNull Query setDisableTypoToleranceOnAttributes(String... attributes); String[] getDisableTypoToleranceOnAttributes(); @NonNull Query setDistinct(Integer nbHitsToKeep); Integer getDistinct(); @NonNull Query setFacets(String... facets); String[] getFacets(); @NonNull Query setFacetFilters(JSONArray filters); @Nullable JSONArray getFacetFilters(); @Nullable Boolean getFacetingAfterDistinct(); @NonNull Query setFacetingAfterDistinct(@Nullable Boolean enabled); @NonNull Query setFilters(String filters); @Nullable String getFilters(); @NonNull Query setGetRankingInfo(@Nullable Boolean enabled); @Nullable Boolean getGetRankingInfo(); @NonNull Query setHighlightPostTag(String tag); @Nullable String getHighlightPostTag(); @NonNull Query setHighlightPreTag(String tag); @Nullable String getHighlightPreTag(); @NonNull Query setHitsPerPage(Integer nbHitsPerPage); Integer getHitsPerPage(); @NonNull Query setIgnorePlurals(@Nullable Boolean enabled); @NonNull Query setIgnorePlurals(@Nullable Collection<String> languageISOCodes); @NonNull Query setIgnorePlurals(@Nullable String... languageISOCodes); @NonNull IgnorePlurals getIgnorePlurals(); @NonNull Query setInsideBoundingBox(@Nullable GeoRect... boxes); @Nullable GeoRect[] getInsideBoundingBox(); @NonNull Query setInsidePolygon(@Nullable LatLng... points); @NonNull Query setInsidePolygon(@Nullable Polygon... polygons); @Nullable Polygon[] getInsidePolygon(); @NonNull Query setLength(Integer n); Integer getLength(); @NonNull Query setMaxFacetHits(Integer n); Integer getMaxFacetHits(); @NonNull Query setMaxValuesPerFacet(Integer n); Integer getMaxValuesPerFacet(); @NonNull Query setMinimumAroundRadius(Integer minimumAroundRadius); Integer getMinimumAroundRadius(); @NonNull Query setMinProximity(Integer nbChars); Integer getMinProximity(); @NonNull Query setMinWordSizefor1Typo(Integer nbChars); Integer getMinWordSizefor1Typo(); @NonNull Query setMinWordSizefor2Typos(Integer nbChars); Integer getMinWordSizefor2Typos(); @NonNull Query setNumericFilters(JSONArray filters); @Nullable JSONArray getNumericFilters(); @NonNull Query setOffset(int offset); Integer getOffset(); @NonNull Query setOptionalWords(String... words); String[] getOptionalWords(); @NonNull Query setOptionalFilters(String... filters); String[] getOptionalFilters(); @NonNull Query setPage(Integer page); Integer getPage(); @NonNull Query setPercentileComputation(@Nullable Boolean enabled); @Nullable Boolean getPercentileComputation(); @NonNull Query setQuery(CharSequence query); @Nullable String getQuery(); @NonNull Query setQueryType(@Nullable QueryType type); @Nullable QueryType getQueryType(); @NonNull Query setRemoveStopWords(Object removeStopWords); @Nullable Object getRemoveStopWords(); @NonNull Query setRemoveWordsIfNoResults(@Nullable RemoveWordsIfNoResults type); @Nullable RemoveWordsIfNoResults getRemoveWordsIfNoResults(); @NonNull Query setReplaceSynonymsInHighlight(@Nullable Boolean enabled); @Nullable Boolean getReplaceSynonymsInHighlight(); @NonNull Query setRestrictHighlightAndSnippetArrays(@Nullable Boolean restrict); @Nullable Boolean getRestrictHighlightAndSnippetArrays(); @NonNull Query setRestrictSearchableAttributes(String... attributes); String[] getRestrictSearchableAttributes(); @NonNull Query setRuleContexts(String... ruleContexts); @Nullable String[] getRuleContexts(); @NonNull Query setSnippetEllipsisText(String snippetEllipsisText); @Nullable String getSnippetEllipsisText(); @NonNull Query setSortFacetValuesBy(SortFacetValuesBy order); SortFacetValuesBy getSortFacetValuesBy(); @NonNull Query setSumOrFiltersScores(@Nullable Boolean enabled); @Nullable Boolean getSumOrFiltersScores(); @NonNull Query setSynonyms(@Nullable Boolean enabled); @Nullable Boolean getSynonyms(); @NonNull Query setTagFilters(JSONArray tagFilters); @Nullable JSONArray getTagFilters(); @NonNull Query setTypoTolerance(@Nullable TypoTolerance type); @Nullable TypoTolerance getTypoTolerance(); @NonNull Query setExactOnSingleWordQuery(@Nullable ExactOnSingleWordQuery type); @Nullable ExactOnSingleWordQuery getExactOnSingleWordQuery(); @NonNull Query setEnablePersonalization(@Nullable Boolean enabled); @Nullable Boolean getEnablePersonalization(); @NonNull Query setEnableRules(@Nullable Boolean enabled); @Nullable Boolean getEnableRules(); @NonNull Query setAlternativesAsExact(@Nullable AlternativesAsExact[] types); @Nullable AlternativesAsExact[] getAlternativesAsExact(); @NonNull Query setResponseFields(String... attributes); String[] getResponseFields(); @Override @NonNull Query set(@NonNull String name, @Nullable Object value); static final int RADIUS_ALL; static final String KEY_SORT_FACET_VALUES_BY; }