title: Using findAll Collection Closure in Groovy
body: <p>I have a "Set" that I need to use the findAll closure upon. The Set contains objects, not just primitive values. For instance... I have a Set of Employee objects and I need to iterate and grab elements of that Set of Empolyee Objects by attributes of the Employee. </p>
  
  <p>For some reason the findAll closure seems to be just ignore my close and returns an empty set. </p>
  
  <p>Here is my syntax;</p>
  
  <pre><code>dstCollection = srcCollection.findAll{
      it.age == 22
  }
  </code></pre>