DataProvider.
For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders,
filters are specific to the implementation.@Deprecated public abstract class Compare extends Object implements Container.Filter
Compare.Equal, Compare.Greater,
Compare.Less, Compare.GreaterOrEqual and Compare.LessOrEqual instead of this
class directly.
This filter also directly supports in-memory filtering.
The reference and actual values must implement Comparable and the
class of the actual property value must be assignable from the class of the
reference value.| Modifier and Type | Class and Description |
|---|---|
static class |
Compare.Equal
Deprecated.
As of 8.0, the whole filtering feature is integrated into
DataProvider.
For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders,
filters are specific to the implementation. |
static class |
Compare.Greater
Deprecated.
As of 8.0, the whole filtering feature is integrated into
DataProvider.
For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders,
filters are specific to the implementation. |
static class |
Compare.GreaterOrEqual
Deprecated.
As of 8.0, the whole filtering feature is integrated into
DataProvider.
For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders,
filters are specific to the implementation. |
static class |
Compare.Less
Deprecated.
As of 8.0, the whole filtering feature is integrated into
DataProvider.
For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders,
filters are specific to the implementation. |
static class |
Compare.LessOrEqual
Deprecated.
As of 8.0, the whole filtering feature is integrated into
DataProvider.
For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders,
filters are specific to the implementation. |
static class |
Compare.Operation
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesToProperty(Object propertyId)
Deprecated.
Check if a change in the value of a property can affect the filtering
result.
|
protected int |
compareValue(Object value1)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
Compare.Operation |
getOperation()
Deprecated.
Returns the comparison operation.
|
Object |
getPropertyId()
Deprecated.
Returns the property id of the property to compare against the fixed
value.
|
Object |
getValue()
Deprecated.
Returns the value to compare the property against.
|
int |
hashCode()
Deprecated.
|
boolean |
passesFilter(Object itemId,
Item item)
Deprecated.
Check if an item passes the filter (in-memory filtering).
|
public boolean passesFilter(Object itemId, Item item)
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 filteredprotected int compareValue(Object value1)
public boolean appliesToProperty(Object propertyId)
Container.FilterappliesToProperty in interface Container.Filterpublic Object getPropertyId()
public Compare.Operation getOperation()
Compare.Operationpublic Object getValue()
Copyright © 2019 Vaadin Ltd. All rights reserved.