Skip to main content

package @rimbu/hashed

The @rimbu/hashed package provides implementations of the HashSet and HashMap.

See the Rimbu docs Map page and Rimbu docs Set page for more information. This is a convenience package that exports everything from the following sub-packages:

Interfaces

NameDescription
GenSource<E>Generic source interface that represents a read-only view over block entries and collision entry sets used by block builders.
Hasher<UK>Interface used to hash objects for hashed collections.
HashMap<K,V>A type-invariant immutable Map of key type K, and value type V. In the Map, each key has exactly one value, and the Map cannot contain duplicate keys. See the Map documentation and the HashMap API documentation
HashSet<T>A type-invariant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the HashSet API documentation

Namespaces

NameDescription
HasherInterface used to hash objects for hashed collections.
HashMapA type-invariant immutable Map of key type K, and value type V. In the Map, each key has exactly one value, and the Map cannot contain duplicate keys. See the Map documentation and the HashMap API documentation
HashSetA type-invariant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the HashSet API documentation

Classes

NameDescription
BlockBuilderBaseBase class for mutable builders that construct hash blocks for hashed collections.
CollisionBuilderBaseBase class for mutable builders that handle hash collisions in hashed collections.