@Test public void testAmenities() throws Exception { final HashSet<String> amenities = new HashSet<>(Arrays.asList("shop", "market")); filterQuery.amenities(amenities); verify(builder).multipleValues("amenity", amenities); }
public OverpassFilterQuery amenities(Set<String> amenities) { builder.multipleValues("amenity", amenities); return this; }
OverpassFilterQuery extends AbstractOverpassSubQuery { public OverpassFilterQuery amenities(Set<String> amenities) { builder.multipleValues("amenity", amenities); return this; } }
OverpassFilterQuery extends AbstractOverpassSubQuery { public OverpassFilterQuery amenities(Set<String> amenities) { builder.multipleValues("amenity", amenities); return this; } OverpassFilterQuery(OverpassQuery parent);   OverpassFilterQuery(OverpassQuery parent, OverpassQueryBuilder builder); }
OverpassFilterQuery extends AbstractOverpassSubQuery { public OverpassFilterQuery amenities(Set<String> amenities) { builder.multipleValues("amenity", amenities); return this; } OverpassFilterQuery(OverpassQuery parent);   OverpassFilterQuery(OverpassQuery parent, OverpassQueryBuilder builder); OverpassFilterQuery prepareNext(); OverpassFilterQuery node(); OverpassFilterQuery rel(); OverpassFilterQuery way(); OverpassFilterQuery area(); OverpassFilterQuery amenity(String amenity); OverpassFilterQuery amenities(Set<String> amenities); OverpassFilterQuery tag(String name); OverpassFilterQuery tag(String name, String value); OverpassFilterQuery tagMultiple(String name, Set<String> values); OverpassFilterQuery tagNot(String name, String value); OverpassFilterQuery tagRegex(String name, String value); OverpassFilterQuery tagRegexNot(String name, String value); OverpassFilterQuery boundingBox(double southernLat, double westernLon, double northernLat, double easternLon); OverpassFilterQuery around(double radius); OverpassFilterQuery around(double radius, double lat, double lon); @Override String build(); }
OverpassFilterQuery extends AbstractOverpassSubQuery { public OverpassFilterQuery amenities(Set<String> amenities) { builder.multipleValues("amenity", amenities); return this; } OverpassFilterQuery(OverpassQuery parent);   OverpassFilterQuery(OverpassQuery parent, OverpassQueryBuilder builder); OverpassFilterQuery prepareNext(); OverpassFilterQuery node(); OverpassFilterQuery rel(); OverpassFilterQuery way(); OverpassFilterQuery area(); OverpassFilterQuery amenity(String amenity); OverpassFilterQuery amenities(Set<String> amenities); OverpassFilterQuery tag(String name); OverpassFilterQuery tag(String name, String value); OverpassFilterQuery tagMultiple(String name, Set<String> values); OverpassFilterQuery tagNot(String name, String value); OverpassFilterQuery tagRegex(String name, String value); OverpassFilterQuery tagRegexNot(String name, String value); OverpassFilterQuery boundingBox(double southernLat, double westernLon, double northernLat, double easternLon); OverpassFilterQuery around(double radius); OverpassFilterQuery around(double radius, double lat, double lon); @Override String build();  }