Java analogue of Python's filter()?

java, python

Solution

It's coming in Java 8. For the moment, your best bet is to use the Guava library, which has an `Iterables.filter()` (or `FluentIterable.filter()`) method.

Problem

Is there any Java method that does exactly the same thing as Pyton's filter()? If so, which library is it in?

Original source

Related problems