(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 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.
(Changed in version 2.8.0) --
creates a new map. Use --=
to remove an element from this map and return that map itself.
Get an iterator over the values of this map.
Get an iterator over the values of this map. This requires making a copy of the map, so it may cause performance problems if called frequently.
(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.
Get the size of this map This requires making a copy of the map, so it may cause performance problems if called frequently.
Get the size of this map This requires making a copy of the map, so it may cause performance problems if called frequently.
(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]
.
Execute a block of code with MDC variables set.
Execute a block of code with MDC variables set. After the block completes, any variables you've set will be returned to their previous values.
A singleton used for accessing the mapped diagnostic context of your loggers. This acts like a regular map, except that the values are different in every thread.
Getting and setting single values and clearing the map are fast operations operations, but other operations, including getting the size, requires making a copy of the MDC.