(Changed in version 2.8.0) +
creates a new map. Use +=
to add an element to this map and return that map itself.
(Changed in version 2.8.0) ++
creates a new map. Use ++=
to add an element to this map and return that map itself.
(Changed in version 2.8.0) -
creates a new map. Use -=
to remove an element from this map and return that map itself.
(Changed in version 2.8.0) --
creates a new map. Use --=
to remove an element from this map and return that map itself.
Removes old key-value pairs that have timestamp earlier than threshTime
Removes old key-value pairs that have timestamp earlier than threshTime
,
calling the supplied function on each such entry before removing.
(Changed in version 2.8.0) keys
returns Iterable[A]
rather than Iterator[A]
.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
(Changed in version 2.8.0) values
returns Iterable[B]
rather than Iterator[B]
.
This is a custom implementation of scala.collection.mutable.Map which stores the insertion timestamp along with each key-value pair. If specified, the timestamp of each pair can be updated every time it is accessed. Key-value pairs whose timestamp are older than a particular threshold time can then be removed using the clearOldValues method. This is intended to be a drop-in replacement of scala.collection.mutable.HashMap.