com.vaadin.data.util.filter
Class Between
java.lang.Object
com.vaadin.data.util.filter.Between
- All Implemented Interfaces:
- Container.Filter, java.io.Serializable
public class Between
- extends java.lang.Object
- implements Container.Filter
- See Also:
- Serialized Form
|
Constructor Summary |
Between(java.lang.Object propertyId,
java.lang.Comparable startValue,
java.lang.Comparable endValue)
|
|
Method Summary |
boolean |
appliesToProperty(java.lang.Object propertyId)
Check if a change in the value of a property can affect the filtering
result. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Comparable<?> |
getEndValue()
|
java.lang.Object |
getPropertyId()
|
java.lang.Comparable<?> |
getStartValue()
|
int |
hashCode()
|
boolean |
passesFilter(java.lang.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 |
Between
public Between(java.lang.Object propertyId,
java.lang.Comparable startValue,
java.lang.Comparable endValue)
getPropertyId
public java.lang.Object getPropertyId()
getStartValue
public java.lang.Comparable<?> getStartValue()
getEndValue
public java.lang.Comparable<?> getEndValue()
passesFilter
public boolean passesFilter(java.lang.Object itemId,
Item item)
throws java.lang.UnsupportedOperationException
- Description copied from interface:
Container.Filter
- Check if an item passes the filter (in-memory filtering).
- Specified by:
passesFilter in interface Container.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:
java.lang.UnsupportedOperationException - if the filter cannot be used for in-memory filtering
appliesToProperty
public boolean appliesToProperty(java.lang.Object propertyId)
- Description copied from interface:
Container.Filter
- Check if a change in the value of a property can affect the filtering
result. May always return true, at the cost of performance.
If the filter cannot determine whether it may depend on the property
or not, should return true.
- Specified by:
appliesToProperty in interface Container.Filter
- Returns:
- true if the filtering result may/does change based on changes
to the property identified by propertyId
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.