public final class SyncFilter
extends java.lang.Object
ActionGroup).
The action groups can be a list of any of the values of the enum ActionGroup, namely:
The includeOnly flag defines whether the list is to be blacklisted (@code false) or
whitelisted (@code true). A blacklist means that everything but these action
groups will be synced. A whitelist means that only these action groups will be synced.
| Modifier and Type | Method and Description |
|---|---|
boolean |
filterActionGroup(ActionGroup actionGroup)
Checks if the supplied
ActionGroup passes this filter. |
static SyncFilter |
of() |
static SyncFilter |
ofBlackList(ActionGroup... actionGroups) |
static SyncFilter |
ofWhiteList(ActionGroup... actionGroups) |
@Nonnull public static SyncFilter ofWhiteList(@Nonnull ActionGroup... actionGroups)
@Nonnull public static SyncFilter ofBlackList(@Nonnull ActionGroup... actionGroups)
@Nonnull public static SyncFilter of()
public boolean filterActionGroup(@Nonnull
ActionGroup actionGroup)
ActionGroup passes this filter.
Passing the filter has an XOR logic as follows:
| includeOnly | actionGroups contains actionGroup | passes filter |
|---|---|---|
| false | false | true (actionGroup is not in blacklist) |
| false | true | false (actionGroup is in blacklist) |
| true | false | false (actionGroup is not in whitelist) |
| true | true | true (actionGroup is in whitelist) |
actionGroup - the supplied action group to be tested if it passes the current filter.ActionGroup passes this filter, otherwise false.