Package ca.odell.glazedlists.matchers
Interface Matcher<E>
-
public interface Matcher<E>Determines which values should be filtered.For best safety, implementations of
Matchershould be immutable. This guarantees thatFilterLists can safely callmatches()without synchronization.In order to create dynamic filtering, use a
MatcherEditor, which can create immutableMatcherObjects each time the matching constraints change.- Author:
- Rob Eden
- See Also:
FilterList,MatcherEditor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatches(E item)Return true if an item matches a filter.
-
-
-
Method Detail
-
matches
boolean matches(E item)
Return true if an item matches a filter.- Parameters:
item- The item possibly being filtered.
-
-