Packages

  • package root
    Definition Classes
    root
  • package strawman
    Definition Classes
    root
  • package collection
    Definition Classes
    strawman
  • trait MapOps[K, +V, +CC[X, Y] <: MapOps[X, Y, CC, _], +C] extends IterableOps[(K, V), Iterable, C] with PartialFunction[K, V] with Equals

    Base Map implementation type

    Base Map implementation type

    K

    Type of keys

    V

    Type of values

    CC

    type constructor of the map (e.g. HashMap). Operations returning a collection with a different type of entries (L, W) (e.g. map) return a CC[L, W].

    C

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

    Definition Classes
    collection
  • GenKeySet
  • KeySet
  • MapWithFilter
  • WithFilter

class MapWithFilter extends WithFilter

Specializes WithFilter for Map collection types

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapWithFilter
  2. WithFilter
  3. WithFilter
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapWithFilter(p: ((K, V)) ⇒ 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[(K, V)]
    Attributes
    protected[this]
    Definition Classes
    WithFilter
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def flatMap[K2, V2](f: ((K, V)) ⇒ IterableOnce[(K2, V2)]): CC[K2, V2]
  11. def flatMap[B](f: ((K, V)) ⇒ IterableOnce[B]): Iterable[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
  12. def foreach[U](f: ((K, V)) ⇒ 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
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def map[K2, V2](f: ((K, V)) ⇒ (K2, V2)): CC[K2, V2]
  17. def map[B](f: ((K, V)) ⇒ B): Iterable[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
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  26. def withFilter(q: ((K, V)) ⇒ Boolean): MapWithFilter

    Further refines the filter for this filtered map collection.

    Further refines the filter for this filtered map 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 map collection which also satisfy both p and q predicates.

    Definition Classes
    MapWithFilterWithFilterWithFilter

Inherited from MapOps.WithFilter

Inherited from collection.WithFilter[(K, V), Iterable]

Inherited from AnyRef

Inherited from Any

Ungrouped