Package com.vaadin.data.util.filter
Class Between
- java.lang.Object
-
- com.vaadin.data.util.filter.Between
-
- All Implemented Interfaces:
Container.Filter,Serializable
public class Between extends Object implements Container.Filter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Between(Object propertyId, Comparable<?> startValue, Comparable<?> endValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappliesToProperty(Object propertyId)Check if a change in the value of a property can affect the filtering result.booleanequals(Object obj)Comparable<?>getEndValue()ObjectgetPropertyId()Comparable<?>getStartValue()inthashCode()booleanpassesFilter(Object itemId, Item item)Check if an item passes the filter (in-memory filtering).
-
-
-
Constructor Detail
-
Between
public Between(Object propertyId, Comparable<?> startValue, Comparable<?> endValue)
-
-
Method Detail
-
getPropertyId
public Object getPropertyId()
-
getStartValue
public Comparable<?> getStartValue()
-
getEndValue
public Comparable<?> getEndValue()
-
passesFilter
public boolean passesFilter(Object itemId, Item item) throws UnsupportedOperationException
Description copied from interface:Container.FilterCheck if an item passes the filter (in-memory filtering).- Specified by:
passesFilterin interfaceContainer.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:
UnsupportedOperationException- if the filter cannot be used for in-memory filtering
-
appliesToProperty
public boolean appliesToProperty(Object propertyId)
Description copied from interface:Container.FilterCheck 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:
appliesToPropertyin interfaceContainer.Filter- Returns:
- true if the filtering result may/does change based on changes to the property identified by propertyId
-
-