class ResourceFilter {

    public boolean matches(Resource other) {
        if ((name != null) && (!name.equals(other.name())))
            return false;
        return (resourceType == ResourceType.ANY) || (resourceType.equals(other.resourceType()));
    }

    public  ResourceFilter(ResourceType resourceType, String name);

}