public interface MatcherEditor<E>
Matcher
s which specify the behaviour of a FilterList
.
Although this interface is called an Editor, the implementor should create new
Matcher
instances on each change rather than modifying the existing Matcher
s.
This is because Matcher
s work best when they are immutable. Further information on this
immutability can be found in the Matcher Javadoc
.
Modifier and Type | Interface and Description |
---|---|
static class |
MatcherEditor.Event<E>
A MatcherEditor event models a change in the
MatcherEditor that creates a new
Matcher . |
static interface |
MatcherEditor.Listener<E>
A MatcherEditor.Listener handles changes fired by a
MatcherEditor . |
Modifier and Type | Method and Description |
---|---|
void |
addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Add a listener to be notified when this editor's
Matcher changes. |
Matcher<E> |
getMatcher()
Return the current
Matcher specified by this MatcherEditor . |
void |
removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when the
Matcher
changes. |
void addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Matcher
changes.void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Matcher
changes.Matcher<E> getMatcher()
Matcher
specified by this MatcherEditor
.Matcher
.Copyright © 2024 levigo holding gmbh. All rights reserved.