HashMap

cats.collections.HashMap$
See theHashMap companion class
object HashMap

Attributes

Companion
class
Source
HashMap.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HashMap.type

Members list

Value members

Concrete methods

final def apply[K, V](kvs: (K, V)*)(implicit hashKey: Hash[K]): HashMap[K, V]

Creates a new cats.data.HashMap which contains all elements of kvs.

Creates a new cats.data.HashMap which contains all elements of kvs.

Value parameters

hashKey

the cats.kernel.Hash instance used for hashing keys.

kvs

the key-value pairs to add to the cats.data.HashMap.

Attributes

Returns

a new cats.data.HashMap which contains all elements of kvs.

Source
HashMap.scala
final def empty[K, V](implicit hashKey: Hash[K]): HashMap[K, V]

Creates a new empty cats.data.HashMap which uses hashKey for hashing.

Creates a new empty cats.data.HashMap which uses hashKey for hashing.

Value parameters

hashKey

the cats.kernel.Hash instance used for hashing keys.

Attributes

Returns

a new empty cats.data.HashMap.

Source
HashMap.scala
final def fromFoldable[F[_], K, V](fkv: F[(K, V)])(implicit F: Foldable[F], hashKey: Hash[K]): HashMap[K, V]

Creates a new cats.data.HashMap which contains all elements of fkv.

Creates a new cats.data.HashMap which contains all elements of fkv.

Value parameters

F

the cats.Foldable instance used for folding the structure.

fkv

the cats.Foldable structure of elements to add to the cats.data.HashMap.

hashKey

the cats.kernel.Hash instance used for hashing values.

Attributes

Returns

a new cats.data.HashMap which contains all elements of fkv.

Source
HashMap.scala
final def fromIterableOnce[K, V](iterable: IterableOnce[(K, V)])(implicit hashKey: Hash[K]): HashMap[K, V]

Creates a new cats.data.HashMap which contains all elements of iterable.

Creates a new cats.data.HashMap which contains all elements of iterable.

Value parameters

hashKey

the cats.kernel.Hash instance used for hashing values.

iterable

the iterable source of elements to add to the cats.data.HashMap.

Attributes

Returns

a new cats.data.HashMap which contains all elements of iterable.

Source
HashMap.scala
final def fromSeq[K, V](seq: Seq[(K, V)])(implicit hashKey: Hash[K]): HashMap[K, V]

Creates a new cats.data.HashMap which contains all elements of seq.

Creates a new cats.data.HashMap which contains all elements of seq.

Value parameters

hashKey

the cats.kernel.Hash instance used for hashing values.

seq

the sequence of elements to add to the cats.data.HashMap.

Attributes

Returns

a new cats.data.HashMap which contains all elements of seq.

Source
HashMap.scala

Implicits

Inherited implicits

Attributes

Inherited from:
HashMapInstances (hidden)
Source
HashMap.scala
implicit def catsCollectionsHashForHashMap[K, V : Hash]: Hash[HashMap[K, V]]

Attributes

Inherited from:
HashMapInstances (hidden)
Source
HashMap.scala

Attributes

Inherited from:
HashMapInstances1 (hidden)
Source
HashMap.scala
implicit def catsCollectionsShowForHashMap[K : Show, V : Show]: Show[HashMap[K, V]]

Attributes

Inherited from:
HashMapInstances (hidden)
Source
HashMap.scala

Attributes

Inherited from:
HashMapInstances (hidden)
Source
HashMap.scala