Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface FilterSplit<T>
A filter split is the result of a filtering operation on a Collection
or an Iterator
.
When a filter is applied to a number of items, some of them will potentially be accepted by the filter and some
of them will be rejected by the filter. This interface depicts the result of such filtering operation.
Tip! When working with a Filter<Node>
, you would typically use
NodeIteratorUtil.split(javax.jcr.NodeIterator, Filter)
to split on an iterator and
NodeFilterUtil.split(java.util.Collection, Filter)
to split on a collection.
Modifier and Type | Method and Description |
---|---|
List<T> |
getAccepted()
Gets the list of items that was accepted by the filter.
|
Filter<T> |
getFilter()
Gets the filter used for the filtering operation.
|
List<T> |
getRejected()
Gets the list of items that was rejected by the filter.
|
List<T> getAccepted()
Note! The accepted list will always be empty if the filter used for the filtering operation is null
null
List<T> getRejected()
null
Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.