public final class Not extends Object implements Container.Filter
| Constructor and Description |
|---|
Not(Container.Filter filter)
Constructs a filter that negates a filter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesToProperty(Object propertyId)
Returns true if a change in the named property may affect the filtering
result.
|
boolean |
equals(Object obj) |
Container.Filter |
getFilter()
Returns the negated filter.
|
int |
hashCode() |
boolean |
passesFilter(Object itemId,
Item item)
Check if an item passes the filter (in-memory filtering).
|
public Not(Container.Filter filter)
filter - Container.Filter to negate, not-nullpublic Container.Filter getFilter()
public boolean passesFilter(Object itemId, Item item) throws UnsupportedOperationException
Container.FilterpassesFilter in interface Container.FilteritemId - identifier of the item being filtered; may be null when
the item is being added to the containeritem - the item being filteredUnsupportedOperationException - if the filter cannot be used for in-memory filteringpublic boolean appliesToProperty(Object propertyId)
appliesToProperty(Object)
for the negated filter.appliesToProperty in interface Container.FilterCopyright © 2023 Vaadin Ltd. All rights reserved.