|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.data.util.filter.Not
public final class Not
Negating filter that accepts the items rejected by another filter. This filter directly supports in-memory filtering when the negated filter does so.
Constructor Summary | |
---|---|
Not(Container.Filter filter)
Constructs a filter that negates a filter. |
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Not(Container.Filter filter)
filter
- Container.Filter
to negate, not-nullMethod Detail |
---|
public Container.Filter getFilter()
public boolean passesFilter(Object itemId, Item item) throws UnsupportedOperationException
Container.Filter
passesFilter
in interface Container.Filter
itemId
- identifier of the item being filtered; may be null when
the item is being added to the containeritem
- the item being filtered
UnsupportedOperationException
- if the filter cannot be used for in-memory filteringpublic boolean appliesToProperty(Object propertyId)
appliesToProperty(Object)
for the negated filter.
appliesToProperty
in interface Container.Filter
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |