scala.collection.jcl.Collection.Filter
class Projection

[source: `scala/collection/jcl/Collection/Filter.scala`]

`` `class` Projection
  `extends` Projection

Direct Known Subclasses:
  Set.Filter.Projection, SortedSet.Filter.Projection

Method Summary
`override def` | filter (p0 : (A) => Boolean) : MutableIterable[A] Returns all the elements of this iterable that satisfy the predicate `p`. The order of the elements is preserved. Unlike `filter` in `Iterable`, this API is not strict and will terminate on infinite-sized collections.

Methods inherited from Projection
map

Methods inherited from Projection
flatMap

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Method Details

`override` `def` filter(p0 : (A) => Boolean) : MutableIterable[A]

  Returns all the elements of this iterable that satisfy the predicate `p`. The order of the elements is preserved. Unlike `filter` in `Iterable`, this API is not strict and will terminate on infinite-sized collections.

Parameters
  `p -` the predicate used to filter the list.
Returns
  the elements of this list satisfying `p`.

Overrides
  Projection.filter