com.vaadin.data.util.filter
Class And

java.lang.Object
  extended by com.vaadin.data.util.filter.AbstractJunctionFilter
      extended by com.vaadin.data.util.filter.And
All Implemented Interfaces:
Container.Filter, Serializable

public final class And
extends AbstractJunctionFilter

A compound Container.Filter that accepts an item if all of its filters accept the item. If no filters are given, the filter should accept all items. This filter also directly supports in-memory filtering when all sub-filters do so.

Since:
6.6
See Also:
Or, Serialized Form

Field Summary
 
Fields inherited from class com.vaadin.data.util.filter.AbstractJunctionFilter
filters
 
Constructor Summary
And(Container.Filter... filters)
           
 
Method Summary
 boolean passesFilter(Object itemId, Item item)
          Check if an item passes the filter (in-memory filtering).
 
Methods inherited from class com.vaadin.data.util.filter.AbstractJunctionFilter
appliesToProperty, equals, getFilters, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

And

public And(Container.Filter... filters)
Parameters:
filters - filters of which the And filter will be composed
Method Detail

passesFilter

public boolean passesFilter(Object itemId,
                            Item item)
                     throws UnsupportedFilterException
Description copied from interface: Container.Filter
Check if an item passes the filter (in-memory filtering).

Parameters:
itemId - identifier of the item being filtered; may be null when the item is being added to the container
item - the item being filtered
Returns:
true if the item is accepted by this filter
Throws:
UnsupportedFilterException


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.