public class ScopeFilter extends Object implements KeyFilter<ScopedState>, 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(String scope) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ScopedState key) |
boolean |
test(ScopedState key) |
public ScopeFilter(String scope)
public boolean accept(ScopedState key)
accept
in interface KeyFilter<ScopedState>
key
- key to testpublic boolean test(ScopedState key)
test
in interface Predicate<ScopedState>
test
in interface KeyFilter<ScopedState>
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.