I am looking for a library which can select object from ArrayList like SQL \"where\" command.
I have huge arraylists (between 2000 and 20000) in my project and i don\'t
If you want to select an element that matches a criteria (or elementS that will match), use the Java 8 filter function. (no need to use other libraries anymore).
Do it as:
List listOfFoo = ... Stream matchingFoo = listOfFoo.stream().filter(t -> t.propertyOrMethod == 'criteria');