private boolean subsumes(PrefixRestriction restriction) { for (FsPath prefix : prefixes) { if (restriction.isRestricted(prefix)) { return false; } } return true; }
@Override public boolean isSubsumedBy(Restriction other) { return other instanceof PrefixRestriction && ((PrefixRestriction) other).subsumes(this); }
@Override public boolean isRestricted(Activity activity, FsPath directory, String child) { return isRestricted(activity, directory.child(child)); }