|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.data.util.filter.IsNull
public final class IsNull
Simple container filter checking whether an item property value is null. This filter also directly supports in-memory filtering.
Constructor Summary | |
---|---|
IsNull(Object propertyId)
Constructor for a filter that compares the value of an item property with null. |
Method Summary | |
---|---|
boolean |
appliesToProperty(Object propertyId)
Check if a change in the value of a property can affect the filtering result. |
boolean |
equals(Object obj)
|
Object |
getPropertyId()
Returns the property id of the property tested by the filter, not null for valid filters. |
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 IsNull(Object propertyId)
propertyId
- the identifier (not null) of the property whose value to checkMethod Detail |
---|
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)
Container.Filter
appliesToProperty
in interface Container.Filter
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object getPropertyId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |