title: Listview filter adapter.getFilter().filter(by more than one value)
body: <p>I have created a list view in android and I already implement search filter by using searchview and charsequence as parameter like this </p>
  
  <pre><code>searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
              @Override
              public boolean onQueryTextSubmit(String query) {
                  return false;
              }
  
              @Override
              public boolean onQueryTextChange(String query) {
                  adapter.getFilter().filter(query);
                  return false;
              }
          });
  </code></pre>
  
  <p>now how can I get the filter result by more than one value? <code>adapter.getFilter().filter("example" || "example" || example);</code>
  is it possible to do that? or maybe can I using adapter.getFilter().filter(array here)?</p>
  
  <p>EDIT: 
  this is my filter</p>
  
  <pre><code>public class CustomFilter extends Filter {
  
      List&lt;Event&gt; filterList;
      EventAdapter adapter;
  
      public CustomFilter(List&lt;Event&gt; filterList, EventAdapter adapter) {
          this.filterList = filterList;
          this.adapter = adapter;
      }
  
      //FILTERING
      @Override
      protected FilterResults performFiltering(CharSequence constraint) {
  
          //RESULTS
          FilterResults results=new FilterResults();
  
          //VALIDATION
          if(constraint != null &amp;&amp; constraint.length()&gt;0)
          {
  
              //CHANGE TO UPPER FOR CONSISTENCY
              constraint=constraint.toString().toUpperCase();
  
              ArrayList&lt;Event&gt; filteredEvent=new ArrayList&lt;&gt;();
  
              //LOOP THRU FILTER LIST
              for(int i=0;i&lt;filterList.size();i++)
              {
                  //FILTER (tinggal mainin logic aja mau filter berdasarkan apa nya )
                  if(filterList.get(i).getJudul().toUpperCase().contains(constraint)|| filterList.get(i).getDeskripsi().toUpperCase().contains(constraint))
                  {
                      filteredEvent.add(filterList.get(i));
                  }
              }
  
              results.count=filteredEvent.size();
              results.values=filteredEvent;
          }else
          {
              results.count=filterList.size();
              results.values=filterList;
          }
  
          return results;
      }
  
  
      //PUBLISH RESULTS
  
      @Override
      protected void publishResults(CharSequence constraint, FilterResults results) {
  
          adapter.eventes= (List&lt;Event&gt;) results.values;
          adapter.notifyDataSetChanged();
  
      }
  }
  </code></pre>