(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
(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]
.
(Since version 2.8.0) use iterator' instead
(Since version 2.8.0) use head' instead
(Since version 2.8.0) use headOption' instead
(Since version 2.8.0) use mapValues' instead
(Since version 2.8.0) use view' instead
(Since version 2.8.0) Use remove' instead
This is a custom implementation of scala.collection.mutable.Map which stores the insertion time stamp along with each key-value pair. Key-value pairs that are older than a particular threshold time can them be removed using the clearOldValues method. This is intended to be a drop-in replacement of scala.collection.mutable.HashMap.