Class AbstractJunctionFilter
java.lang.Object
com.vaadin.featurepack.data.util.filter.AbstractJunctionFilter
- All Implemented Interfaces:
Container.Filter,Serializable
- Direct Known Subclasses:
And,JoinFilter,Or
Abstract base class for filters that are composed of multiple sub-filters.
The method
appliesToProperty(Object) is provided to help
implementing Container.Filter for in-memory filters.- See Also:
-
Field Summary
Fields -
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 an unmodifiable collection of the sub-filters of this composite filter.inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.featurepack.data.Container.Filter
passesFilter
-
Field Details
-
filters
-
-
Constructor Details
-
AbstractJunctionFilter
-
-
Method Details
-
getFilters
Returns an unmodifiable collection of the sub-filters of this composite filter.- Returns:
-
appliesToProperty
Returns true if a change in the named property may affect the filtering result. If some of the sub-filters are not in-memory filters, true is returned. By default, all sub-filters are iterated to check if any of them applies. If there are no sub-filters, false is returned - override in subclasses to change this behavior.- Specified by:
appliesToPropertyin interfaceContainer.Filter- Parameters:
propertyId-- Returns:
- true if the filtering result may/does change based on changes to the property identified by propertyId
-
equals
-
hashCode
public int hashCode()
-