Code example for PermissionCollection

Methods: add

0
            this.enabled.add(permissions[i]);
        } 
    } 
 
    void addPermission(Permission permission) {
        enabled.add(permission);
    } 
 
    void clearPermissions() { 
        enabled = new Permissions();
    } 
 
    void denyPermission(Permission p) {
        if (denied == null) {
            denied = p.newPermissionCollection();
        } 
        denied.add(p);
    } 
 
    @Override 
    public void checkPermission(Permission permission)