Copyright© 2008-2022 Sitevision AB, all rights reserved.
@FunctionalInterface public interface Filter<T>
A filter is used to determine if an object matches a certain criteria or not.
Typically a filter is applied to a Collection or a Iterator
to extract all "relevant/matching" objects.
See NodeFilterUtil for predefined node filters (i.e. Filter<Node>).
NodeFilterUtil| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(T anObject)
Whether a given object matches the filter requirements or not.
|
boolean accept(T anObject)
anObject - the object to checktrue if anObject is accepted by this filter, false otherwiseSitevision - 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.