Class Not
java.lang.Object
com.vaadin.featurepack.data.util.filter.Not
- All Implemented Interfaces:
Container.Filter,Serializable
Negating filter that accepts the items rejected by another filter.
This filter directly supports in-memory filtering when the negated filter
does so.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanappliesToProperty(Object propertyId) Returns true if a change in the named property may affect the filtering result.booleanReturns the negated filter.inthashCode()booleanpassesFilter(Object itemId, Item item) Check if an item passes the filter (in-memory filtering).
-
Constructor Details
-
Not
Constructs a filter that negates a filter.- Parameters:
filter-Container.Filterto negate, not-null
-
-
Method Details
-
getFilter
Returns the negated filter.- Returns:
- Filter
-
passesFilter
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
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- Parameters:
propertyId-- Returns:
- boolean
-
equals
-
hashCode
public int hashCode()
-