Package com.vaadin.v7.data.util.filter
Class Not
- java.lang.Object
-
- com.vaadin.v7.data.util.filter.Not
-
- All Implemented Interfaces:
Container.Filter,Serializable
@Deprecated public final class Not extends Object implements Container.Filter
Deprecated.As of 8.0, the whole filtering feature is integrated intoDataProvider. For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders, filters are specific to the implementation.Negating filter that accepts the items rejected by another filter. This filter directly supports in-memory filtering when the negated filter does so.- Since:
- 6.6
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Not(Container.Filter filter)Deprecated.Constructs a filter that negates a filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanappliesToProperty(Object propertyId)Deprecated.Returns true if a change in the named property may affect the filtering result.booleanequals(Object obj)Deprecated.Container.FiltergetFilter()Deprecated.Returns the negated filter.inthashCode()Deprecated.booleanpassesFilter(Object itemId, Item item)Deprecated.Check if an item passes the filter (in-memory filtering).
-
-
-
Constructor Detail
-
Not
public Not(Container.Filter filter)
Deprecated.Constructs a filter that negates a filter.- Parameters:
filter-Container.Filterto negate, not-null
-
-
Method Detail
-
getFilter
public Container.Filter getFilter()
Deprecated.Returns the negated filter.- Returns:
- Filter
-
passesFilter
public boolean passesFilter(Object itemId, Item item) throws UnsupportedOperationException
Deprecated.Description copied from interface:Container.FilterCheck if an item passes the filter (in-memory filtering).- Specified by:
passesFilterin interfaceContainer.Filter- Parameters:
itemId- identifier of the item being filtered; may be null when the item is being added to the containeritem- the item being filtered- Returns:
- true if the item is accepted by this filter
- Throws:
UnsupportedOperationException- if the filter cannot be used for in-memory filtering
-
appliesToProperty
public boolean appliesToProperty(Object propertyId)
Deprecated.Returns true if a change in the named property may affect the filtering result. Return value is the same asappliesToProperty(Object)for the negated filter.- Specified by:
appliesToPropertyin interfaceContainer.Filter- Returns:
- boolean
-
-