@Override
    public Iterator<Resource> iterator() {
      return new ResourceIterator(resources, predicate, evaluator);
    }
Create a ResourceIterable.

@param resources  the set of resources to iterate over
@param predicate  the predicate used to filter the set of resources
@param evaluator  the evaluator used to evaluate with the given predicate
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ClusterControllerImpl.java