Is there something like find_if in Java?
- by FredOverflow
In C++, I can use find_if with a predicate to find an element in a container. Is there something like that in Java? The contains method on collections uses equals and can not be parameterized.