public class BlacklistManager
extends java.lang.Object
Constructor and Description |
---|
BlacklistManager() |
Modifier and Type | Method and Description |
---|---|
void |
addBlacklistElement(BlacklistElement element)
Add the given blacklist element to the set of blacklist elements.
|
void |
clear()
Removes all blacklist elements.
|
Blacklist |
createBlacklist(Resolver rootResolver)
Convencience method for creating a blacklist with a single root resolver.
|
Blacklist |
createBlacklist(java.util.Set<Resolver> rootResolvers)
Creates a blacklist based on the set of blacklist elements handled by this manager, starting at the given set
of root resolvers.
|
java.util.Collection<BlacklistElement> |
getBlacklistElements()
Gets the collection of blacklist elements.
|
void |
removeAllBlacklistElements(java.util.function.Predicate<BlacklistElement> filter)
Removes all blacklist elements satisfying the given filter.
|
void |
removeBlacklistElement(BlacklistElement element)
Remove the given blacklist element from the set of blacklist elements.
|
public void addBlacklistElement(BlacklistElement element)
element
- The blacklist element to add.public void removeBlacklistElement(BlacklistElement element)
element
- The blacklist element to remove.public void removeAllBlacklistElements(java.util.function.Predicate<BlacklistElement> filter)
filter
- The filter to remove elements with. All elements satisfying the filter are removed.public void clear()
public java.util.Collection<BlacklistElement> getBlacklistElements()
public Blacklist createBlacklist(java.util.Set<Resolver> rootResolvers)
rootResolvers
- The set of root resolvers to start resolving the blacklist at.public Blacklist createBlacklist(Resolver rootResolver)
createBlacklist(Set)
with a singleton set.