I am looking for a simple method instead of while/for loop, for filtering out set of objects from ArrayList<Object> base on the object that contains a unique value.
For example ,i have list of object as
[Status [status=new], Status [status=closed], Status [status=new], Status [status=closed], Status [status=new], Status [status=closed], Status [status=new], Status [status=closed], Status [status=new], Status [status=closed]].
I need the objects that has status value"new" into a list to compare.No need of the object that has already closed.