with Type
Returns a collection containing the objects in this collection of the given type. The returned collection is live, so that when matching objects are later added to this collection, they are also visible in the filtered collection.
Return
The matching objects. Returns an empty collection if there are no such objects in this collection.
Parameters
The type of objects to find.
Returns a collection containing the objects in this collection of the given type. Equivalent to calling withType(type).all(configureAction)
Return
The matching objects. Returns an empty collection if there are no such objects in this collection.
Parameters
The type of objects to find.
The action to execute for each object in the resulting collection.
Returns a collection containing the objects in this collection of the given type. Equivalent to calling withType(type).all(configureClosure)
.
Return
The matching objects. Returns an empty collection if there are no such objects in this collection.
Parameters
The type of objects to find.
The closure to execute for each object in the resulting collection.