Package es.situm.sdk.utils.filter
Class Filter
java.lang.Object
es.situm.sdk.utils.filter.Filter
Deprecated.
Use a for with an if to filter the collection
Filter a collection of Filterable objects, by name|value of their custom fields.
The filter just stores getFilterMode() and getKeyValueFilters().
You can instance a filter, specifying how to filter, and reuse it to filter multiple collections.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.Use a for with an if to filter the collectionstatic classDeprecated.Use a for with an if to filter the collection -
Constructor Summary
ConstructorsConstructorDescriptionFilter(Filter.FilterMode filterMode, Collection<Filter.KeyValueFilter> keyValueFilters) Deprecated. -
Method Summary
Modifier and TypeMethodDescription<T extends Filterable>
ArrayList<T>filter(Collection<T> toFilter) Deprecated.Filter the passed list of items using the stored filters.Deprecated.Deprecated.
-
Constructor Details
-
Filter
Deprecated.- Parameters:
filterMode- can't be nullkeyValueFilters- can't be null- Throws:
NullPointerException- if some parameter is null
-
-
Method Details
-
getKeyValueFilters
Deprecated. -
getFilterMode
Deprecated. -
filter
Deprecated.Filter the passed list of items using the stored filters.- Parameters:
toFilter- element to filter. Is not altered.- Returns:
- new list with the resulting filtered items. Provided list is not altered.
- Throws:
NullPointerException- if some parameter is null
-