Is there something like find_if in Java?

Posted by FredOverflow on Stack Overflow See other posts from Stack Overflow or by FredOverflow
Published on 2010-04-05T09:26:35Z Indexed on 2010/04/05 9:33 UTC
Read the original article Hit count: 339

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about collections