Adds a filter to this item list.
352876
public function filter($column, $value, $comparison = '=')
    {
        $foundFilterIndex = -1;
        if ($column) {
            foreach ($this->filters as $key => $info) {
                if ($info[0] == $column) {
                    $foundFilterIndex = $key;
                    break;
                }
            }
        }

        if ($foundFilterIndex > -1) {
            $this->filters[$foundFilterIndex] = array($column, $value, $comparison);
        } else {
            $this->filters[] = array($column, $value, $comparison);
        }
    }
320647
public void addFilter(PropFilter filter)
	{
		if (mFilter == null)
		{
			mFilter = new ArrayList<PropFilter>(8);
		}

		mFilter.add(filter);
	}
619019
def add_filter(filter, filter_options = {})
      filter = RequestLogAnalyzer::Filter.const_get(RequestLogAnalyzer.to_camelcase(filter)) if filter.is_a?(Symbol)
      @filters << filter.new(source.file_format, @options.merge(filter_options))
    end
1320720
public function addCustomFilters()
    {
        foreach ($this->customFilters() as $name => $filter) {
            app('sanitizer')->extend($name, $filter);
        }
    }
123950
def add_filter(self, key, filter_value):
        
        seek = u"filter[%s]" % key
        if self.validate_filter(key, filter_value):
            self.filters[key] = filter_value
            return True
        else:
            msg = u'Invalid filter value: filter:%s value:%s' % (key, filter_value)
            print msg
            raise SalesKingException("FILTER_INVALID", msg )
303492
public void addFilter(Filter filter)
   {
      if (filter.isTaskFilter())
      {
         m_taskFilters.add(filter);
      }

      if (filter.isResourceFilter())
      {
         m_resourceFilters.add(filter);
      }

      m_filtersByName.put(filter.getName(), filter);
      m_filtersByID.put(filter.getID(), filter);
   }
966201
def add_filter(self, filter_or_string, *args, **kwargs):
        
        self.root_filter.add_filter(filter_or_string, *args, **kwargs)
        return self
62264
def add_filter(filter)
      @filters = (@filters << filter).sort_by do |f|
        f.respond_to?(:weight) ? f.weight : DEFAULT_WEIGHT
      end.reverse!
    end
678123
def rest_add_filters(self, data):
        
        for _filter in data:
            filter_class = map_args_filter.get(_filter["opr"], None)
            if filter_class:
                self.add_filter(_filter["col"], filter_class, _filter["value"])
1028496
private void add(FieldFilter filter) {
        switch(operator) {
        case NOT:
            filters.add(new NegationFieldFilter(filter));
            operator = Operator.NONE;
            break;
        case OR:
            filters.set(filters.size() - 1, 
                        new OrFieldFilter(filters.get(filters.size() - 1), filter));
            operator = Operator.NONE;
            break;
        default:
            filters.add(filter);
            break;
        }
    }
219088
public List<ESigItem> findItems(ESigFilter filter) {
        List<ESigItem> list = new ArrayList<ESigItem>();
        
        if (filter == null) {
            list.addAll(items);
        } else {
            for (ESigItem item : items) {
                if (filter.matches(item)) {
                    list.add(item);
                }
            }
        }
        
        return list;
    }
927099
public static <T> void addAll(Collection<T> pagingResults, Collection<T> paging, BooleanExpression<T> filter)
	{
		if (pagingResults == null || paging == null)
			return;

		if (filter != null)
		{
			for (T obj : paging)
			{
				if (filter.apply(obj))
					pagingResults.add(obj);
			}
		}
		else
		{
			// add independent of a filter
			for (T obj : paging)
			{
				pagingResults.add(obj);
			}
		}
	}
1372872
private void addIfAccept(Class<?> clazz) {
		if (null != clazz) {
			Filter<Class<?>> classFilter = this.classFilter;
			if (classFilter == null || classFilter.accept(clazz)) {
				this.classes.add(clazz);
			}
		}
	}
340406
private void add(MethodFilter filter) {
        switch(operator) {
        case NOT:
            filters.add(new NegationMethodFilter(filter));
            operator = Operator.NONE;
            break;
        case OR:
            filters.set(filters.size() - 1, 
                        new OrMethodFilter(filters.get(filters.size() - 1), filter));
            operator = Operator.NONE;
            break;
        default:
            filters.add(filter);
            break;
        }
    }
131563
public void addFilter(final Filter newFilter) {
    if (headFilter == null) {
      headFilter = newFilter;
      tailFilter = newFilter;
    } else {
      tailFilter.next = newFilter;
      tailFilter = newFilter;
    }
  }
715132
def __update_filter(self):
        
        filters = list()
        if self.__date_filter:
            filters.append(self.__date_filter)
        if self.__text_filter:
            filters.append(self.__text_filter)
        self.document_controller.display_filter = ListModel.AndFilter(filters)
276883
def on_add(self, item):
        """"""
        super(Tels, self).on_add(list_views.PseudoAccesCategorie(item))