private BloomFilter(BitArray bits, int numHashFunctions, IFunnel <T> funnel, IStrategy strategy) { ParameterUtil.CheckArgument(numHashFunctions > 0, "numHashFunctions (%s) must be > 0", nameof(numHashFunctions)); ParameterUtil.CheckArgument(numHashFunctions <= 255, "numHashFunctions (%s) must be > 0", nameof(numHashFunctions)); this.bits = ParameterUtil.CheckNotNull(bits); this.numHashFunctions = numHashFunctions; this.funnel = ParameterUtil.CheckNotNull(funnel); this.strategy = ParameterUtil.CheckNotNull(strategy); }