scala.collection.jcl.Map

class Filter

[source: scala/collection/jcl/Map.scala]

protected class Filter(p : (K) => Boolean)
extends Projection[K, E]
Direct Known Subclasses:
SortedMap.Filter, SortedMap.Range

Method Summary
override def contains (key : K) : Boolean
Is the given key mapped to a value by this map?
override def elements : MutableIterator[(K, E)]
The default implementation of a map over mutable iterable collections.
override def filterKeys (p0 : (K) => Boolean) : Projection[K, E]
non-strict filter based on keys only
override def get (key : K) : Option[E]
Check if this map maps key to a value and return the value if it exists.
override def put (key : K, elem : E) : Option[E]
Map key to elem in this map and return the element that the key was previously mapped to (if any).
override def removeKey (key : K) : Option[E]
Remove key from this map and return the element that the key was previously mapped to (if any).
override def size : Int
Compute the number of key-to-value mappings.
Methods inherited from Projection
projection, map
Methods inherited from Map
clear, isEmpty, keySet, keys, valueSet, ++=, has, update, +, +=, -, remove, -=, lense
Methods inherited from Map
+=, ++=, +, ++, ++, -=, --=, --=, -, --, --, getOrElseUpdate, transform, retain, <<, clone, readOnly, +=, incl, excl
Methods inherited from Map
getOrElse, apply, isDefinedAt, values, equals, hashCode, toString, default, mapElements, stringPrefix
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
compose
Methods inherited from Projection
filter
Methods inherited from Projection
force, flatMap, takeWhile, append
Methods inherited from MutableIterable
removeAll, --, -, retainOnly, retainAll, size0
Methods inherited from Collection
toArray
Methods inherited from Iterable
concat, ++, partition, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toSeq, toStream, mkString, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize
Methods inherited from AnyRef
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
override def elements : MutableIterator[(K, E)]
The default implementation of a map over mutable iterable collections.

override def removeKey(key : K) : Option[E]
Remove key from this map and return the element that the key was previously mapped to (if any).

override def contains(key : K) : Boolean
Is the given key mapped to a value by this map?
Parameters
key - the key
Returns
true iff there is a mapping for key in this map

override def put(key : K, elem : E) : Option[E]
Map key to elem in this map and return the element that the key was previously mapped to (if any).

override def get(key : K) : Option[E]
Check if this map maps key to a value and return the value if it exists.
Parameters
key - the key of the mapping of interest
Returns
the value of the mapping, if it exists

override def filterKeys(p0 : (K) => Boolean) : Projection[K, E]
non-strict filter based on keys only

override def size : Int
Compute the number of key-to-value mappings.
Returns
the number of mappings