Values represented by the filter.
Creates a filter from its size, hash count, and optional seed or bit data.
Values represented by the filter.
Filter size, hash count, and optional initial state.
A new Bloom filter.
ReadonlyfilterReadonlyhashesReadonlyseedReadonlysizeChecks whether an element may be present in the filter.
Value to look up.
false guarantees the element is absent; true means it may be
present and can be a false positive.
Returns the filter state in a JSON-serialisable form.
Filter size, hash count, seed, and bit data.
A space-efficient probabilistic set for values with a stable
toString().Membership checks can produce false positives, but never false negatives. Use
CountingBloomFilterwhen values must be removed. The filter uses seeded XXH64 hashing with enhanced double hashing. This hash is non-cryptographic and should not be used for security-sensitive purposes.Example