code: public boolean matchesFilter(String filter, int priValue, int secValue) {
  
          filter = filter.toLowerCase();
          return m_parameters[priValue].toLowerCase().contains(filter)
              || m_parameters[secValue].toLowerCase().contains(filter);
      }
docs: Returns if the category matches the given filter.<p>
  
  @param filter the filter to match
  @param priValue the first search value
  @param secValue the second search value
  
  @return <code>true</code> if the gallery matches the given filter.<p>