@Test public void testRemoveSearchFilter() { Searchable searchable = Searchable.newSearchable(); searchable.addSearchParam("a", "123"); searchable.addSearchParam("b", "123"); searchable.addSearchParam("c", "123"); searchable.or( SearchFilterHelper.newCondition("sex_like", "male"), SearchFilterHelper.newCondition("birthday_custom", "2012"), SearchFilterHelper.newCondition("realname", "123"), SearchFilterHelper.newCondition("name_custom", "123"), SearchFilterHelper.newCondition("age_eq", 1) ); searchable.removeSearchFilter("a"); searchable.removeSearchFilter("b_custom"); searchable.removeSearchFilter("sex_like"); searchable.removeSearchFilter("realname_custom"); searchable.removeSearchFilter("name"); Assert.assertEquals(2, searchable.getSearchFilters().size()); }
public abstract Searchable removeSearchFilter(final String key);
Searchable { public abstract Searchable removeSearchFilter(final String key); }
Searchable { public abstract Searchable removeSearchFilter(final String key);  }
Searchable { public abstract Searchable removeSearchFilter(final String key);  static Searchable newSearchable(); static Searchable newSearchable(final Map<String, Object> searchParams); static Searchable newSearchable(final Map<String, Object> searchParams, final Pageable page); static Searchable newSearchable(final Map<String, Object> searchParams, final Sort sort); static Searchable newSearchable(final Map<String, Object> searchParams, final Pageable page, final Sort sort); abstract Searchable addSearchParam(final String key, final Object value); abstract Searchable addSearchParams(final Map<String, Object> searchParams); abstract Searchable addSearchFilter(
            final String searchProperty, final SearchOperator operator, final Object value); abstract Searchable addSearchFilter(final SearchFilter searchFilter); abstract Searchable addSearchFilters(final Collection<? extends SearchFilter> searchFilters); abstract Searchable or(final SearchFilter first, final SearchFilter... others); abstract Searchable and(final SearchFilter first, final SearchFilter... others); abstract Searchable removeSearchFilter(final String key); abstract Searchable removeSearchFilter(String searchProperty, SearchOperator operator); abstract Searchable convert(final Class<T> entityClass); abstract Searchable markConverted(); abstract Searchable setPage(final Pageable page); abstract Searchable setPage(final int pageNumber, final int pageSize); abstract Searchable addSort(final Sort sort); abstract Searchable addSort(final Sort.Direction direction, String property); abstract Collection<SearchFilter> getSearchFilters(); abstract boolean isConverted(); abstract boolean hasSearchFilter(); abstract boolean hashSort(); abstract void removeSort(); abstract boolean hasPageable(); abstract void removePageable(); abstract Pageable getPage(); abstract Sort getSort(); abstract boolean containsSearchKey(final String key); abstract T getValue(final String key); }
Searchable { public abstract Searchable removeSearchFilter(final String key);  static Searchable newSearchable(); static Searchable newSearchable(final Map<String, Object> searchParams); static Searchable newSearchable(final Map<String, Object> searchParams, final Pageable page); static Searchable newSearchable(final Map<String, Object> searchParams, final Sort sort); static Searchable newSearchable(final Map<String, Object> searchParams, final Pageable page, final Sort sort); abstract Searchable addSearchParam(final String key, final Object value); abstract Searchable addSearchParams(final Map<String, Object> searchParams); abstract Searchable addSearchFilter(
            final String searchProperty, final SearchOperator operator, final Object value); abstract Searchable addSearchFilter(final SearchFilter searchFilter); abstract Searchable addSearchFilters(final Collection<? extends SearchFilter> searchFilters); abstract Searchable or(final SearchFilter first, final SearchFilter... others); abstract Searchable and(final SearchFilter first, final SearchFilter... others); abstract Searchable removeSearchFilter(final String key); abstract Searchable removeSearchFilter(String searchProperty, SearchOperator operator); abstract Searchable convert(final Class<T> entityClass); abstract Searchable markConverted(); abstract Searchable setPage(final Pageable page); abstract Searchable setPage(final int pageNumber, final int pageSize); abstract Searchable addSort(final Sort sort); abstract Searchable addSort(final Sort.Direction direction, String property); abstract Collection<SearchFilter> getSearchFilters(); abstract boolean isConverted(); abstract boolean hasSearchFilter(); abstract boolean hashSort(); abstract void removeSort(); abstract boolean hasPageable(); abstract void removePageable(); abstract Pageable getPage(); abstract Sort getSort(); abstract boolean containsSearchKey(final String key); abstract T getValue(final String key);  }