Packages

  • package root
    Definition Classes
    root
  • package strawman
    Definition Classes
    root
  • package collection
    Definition Classes
    strawman
  • trait IterableOps[+A, +CC[_], +C] extends IterableOnce[A]

    Base trait for Iterable operations

    Base trait for Iterable operations

    VarianceNote

    We require that for all child classes of Iterable the variance of the child class and the variance of the C parameter passed to IterableOps are the same. We cannot express this since we lack variance polymorphism. That's why we have to resort at some places to write C[A @uncheckedVariance].

    CC

    type constructor of the collection (e.g. List, Set). Operations returning a collection with a different type of element B (e.g. map) return a CC[B].

    C

    type of the collection (e.g. List[Int], String, BitSet). Operations returning a collection with the same type of element (e.g. drop, filter) return a C.

    Definition Classes
    collection
  • WithFilter

class WithFilter extends collection.WithFilter[A, CC]

A template trait that contains just the map, flatMap, foreach and withFilter methods of trait Iterable.

Linear Supertypes
collection.WithFilter[A, CC], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WithFilter
  2. WithFilter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WithFilter(p: (A) ⇒ Boolean)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def filtered: Filter[A]
    Attributes
    protected[this]
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def flatMap[B](f: (A) ⇒ IterableOnce[B]): CC[B]

    Builds a new collection by applying a function to all elements of the filtered outer iterable collection containing this WithFilter instance that satisfy

    Builds a new collection by applying a function to all elements of the filtered outer iterable collection containing this WithFilter instance that satisfy

    B

    the element type of the returned collection.

    f

    the function to apply to each element.

    returns

    a new iterable collection resulting from applying the given collection-valued function f to each element of the filtered outer iterable collection and concatenating the results.

    Definition Classes
    WithFilterWithFilter
  11. def foreach[U](f: (A) ⇒ U): Unit

    Applies a function f to all elements of the filtered outer iterable collection.

    Applies a function f to all elements of the filtered outer iterable collection.

    U

    the type parameter describing the result of function f. This result will always be ignored. Typically U is Unit, but this is not necessary.

    f

    the function that is applied for its side-effect to every element. The result of function f is discarded.

    Definition Classes
    WithFilterWithFilter
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def map[B](f: (A) ⇒ B): CC[B]

    Builds a new collection by applying a function to all elements of the filtered outer iterable collection.

    Builds a new collection by applying a function to all elements of the filtered outer iterable collection.

    B

    the element type of the returned collection.

    f

    the function to apply to each element.

    returns

    a new iterable collection resulting from applying the given function f to each element of the filtered outer iterable collection and collecting the results.

    Definition Classes
    WithFilterWithFilter
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  24. def withFilter(q: (A) ⇒ Boolean): WithFilter

    Further refines the filter for this filtered iterable collection.

    Further refines the filter for this filtered iterable collection.

    q

    the predicate used to test elements.

    returns

    an object of class WithFilter, which supports map, flatMap, foreach, and withFilter operations. All these operations apply to those elements of this iterable collection which also satisfy both p and q predicates.

    Definition Classes
    WithFilterWithFilter

Inherited from collection.WithFilter[A, CC]

Inherited from AnyRef

Inherited from Any

Ungrouped