capacity

public long capacity()

Returns the number of elements this filter can represent at its requested FPP. It's sometimes possible to add more elements to a cuckoo filter than its capacity since the load factor used to calculate its optimal storage size is less than 100%.

Return

the number of elements this filter can represent at its requested FPP.

See also

optimalLoadFactor(int)