zio.blocks.schema.binding.MapConstructor
See theMapConstructor companion object
Builds a map of type M[K, V] entry by entry through a mutable builder: the construction half of a Binding.Map . A codec decodes a map by calling newObjectBuilder, addObject for each entry, and then resultObject.
Type parameters
M
the map type constructor
Attributes
Companion
object
Source
MapConstructor.scala
Graph
Reset zoom Hide graph Show graph
Supertypes
trait Matchable
class Any
Members list
The mutable builder that collects the entries.
Adds the entry k -> v to builder. For chunkMap and map, a later entry with the same key replaces an earlier one.
Adds the entry k -> v to builder. For chunkMap and map, a later entry with the same key replaces an earlier one.
Attributes
Source
MapConstructor.scala
Creates an empty builder. sizeHint is the expected number of entries; chunkMap passes it to its builder, and map ignores it.
Creates an empty builder. sizeHint is the expected number of entries; chunkMap passes it to its builder, and map ignores it.
Attributes
Source
MapConstructor.scala
Returns the map built from the entries added to builder.
Returns map with key bound to value, replacing an existing binding of key.
Returns map with key bound to value, replacing an existing binding of key.
Attributes
Source
MapConstructor.scala