public class ScopeFilter extends java.lang.Object implements KeyFilter<ScopedState>, java.util.function.Predicate<ScopedState>
ScopedState that allows listeners of the global state cache to choose events by scope.| Modifier and Type | Class and Description |
|---|---|
static class |
ScopeFilter.Externalizer |
ACCEPT_ALL_FILTER| Constructor and Description |
|---|
ScopeFilter(java.lang.String scope) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(ScopedState key) |
boolean |
test(ScopedState key) |
public boolean accept(ScopedState key)
accept in interface KeyFilter<ScopedState>key - key to testpublic boolean test(ScopedState key)
test in interface java.util.function.Predicate<ScopedState>test in interface KeyFilter<ScopedState>