Returns the elements from this fluent iterable that satisfy a predicate. The resulting fluent iterable's iterator does not support remove(). Stream equivalent: stream.filter(predicate) (same).
(Predicate<? super E> predicate)
| 409 | |
| 410 | |
| 411 | public final FluentIterable<E> filter(Predicate<? super E> predicate) { |
| 412 | return from(Iterables.filter(iterable, predicate)); |
| 413 | } |
| 414 | |
| 415 | /** |
| 416 | * Returns the elements from this fluent iterable that are instances of class {@code type}. |