WithFilter

scala.collection.SortedMapOps.WithFilter
class WithFilter[K, +V, +IterableCC[_], +MapCC <: (Map), +CC <: ([X, Y] =>> Map[X, Y] & SortedMapOps[X, Y, CC, _])](self: SortedMapOps[K, V, CC, _] & MapOps[K, V, MapCC, _] & IterableOps[(K, V), IterableCC, _], p: ((K, V)) => Boolean) extends WithFilter[K, V, IterableCC, MapCC]

Specializes MapWithFilter for sorted Map collections

Attributes

Source
SortedMap.scala
Graph
Supertypes
class WithFilter[K, V, IterableCC, MapCC]
class WithFilter[(K, V), IterableCC]
class WithFilter[(K, V), IterableCC]
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def flatMap[K2 : Ordering, V2](f: ((K, V)) => IterableOnce[(K2, V2)]): CC[K2, V2]

Attributes

Source
SortedMap.scala
def map[K2 : Ordering, V2](f: ((K, V)) => (K2, V2)): CC[K2, V2]

Attributes

Source
SortedMap.scala
override def withFilter(q: ((K, V)) => Boolean): WithFilter[K, V, IterableCC, MapCC, CC]

Further refines the filter for this filtered sorted map collection.

Further refines the filter for this filtered sorted map collection.

Value parameters

q

the predicate used to test elements.

Attributes

Returns

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

Definition Classes
Source
SortedMap.scala

Inherited methods

def flatMap[K2, V2](f: ((K, V)) => IterableOnce[(K2, V2)]): MapCC[K2, V2]

Attributes

Inherited from:
WithFilter
Source
Map.scala
def flatMap[B](f: ((K, V)) => IterableOnce[B]): IterableCC[B]

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

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

Type parameters

B

the element type of the returned collection.

Value parameters

f

the function to apply to each element.

Attributes

Returns

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

Inherited from:
WithFilter
Source
Iterable.scala
def foreach[U](f: ((K, V)) => U): Unit

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

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

Type parameters

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.

Value parameters

f

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

Attributes

Inherited from:
WithFilter
Source
Iterable.scala
def map[K2, V2](f: ((K, V)) => (K2, V2)): MapCC[K2, V2]

Attributes

Inherited from:
WithFilter
Source
Map.scala
def map[B](f: ((K, V)) => B): IterableCC[B]

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

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

Type parameters

B

the element type of the returned collection.

Value parameters

f

the function to apply to each element.

Attributes

Returns

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

Inherited from:
WithFilter
Source
Iterable.scala