@FunctionalInterface
public interface Matcher<E>
extends java.util.function.Predicate<E>
For best safety, implementations of Matcher should be
immutable. This
guarantees that FilterLists can safely call
matches() without synchronization.
As of Glazed Lists 1.12 Matcher was adapted to extend the Predicate interface.
This way you can use an existing Matcher everywhere a predicate is expected.
In order to create dynamic filtering, use a
MatcherEditor, which
can create immutable Matcher Objects each time the matching constraints
change.
FilterList,
MatcherEditor| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(E item)
Return true if an item matches a filter.
|
default boolean |
test(E item) |
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by swimmesberger at Wed Feb 13 09:45:20 CET 2019