com.r3corda.core.utilities / RecordingMap / <init>

# <init>

`RecordingMap(wrappedMap: MutableMap<K, V>, logger: <ERROR CLASS> = loggerFor<RecordingMap<K, V>>())`

A RecordingMap wraps a regular Map<K, V> and records the sequence of gets and puts to it. This is useful in white box unit tests to ensure that code is accessing a data store as much as you expect.

Note: although this class itself thread safe, if the underlying map is not, then this class loses its thread safety.