Reputation: 640
I have a Groovy class:
class GlobalUsers {
String name = ""
String ID = ""
................
................
}
Now in another function:
List<GlobalUsers> guObjs = new List<GlobalUsers>();
Here I have few hundreds of objects of GlobalUsers in a List.
I want to find all objects of GlobalUsers where string name == "User_CUSTOM"
So basically the result will be another List:
List<GlobalUsers> guObjs = *name == "User_CUSTOM"*
Upvotes: 1
Views: 4439