/**
* Returns {@code true} if the element <i>might</i> have been put in this Bloom filter,
* {@code false} if this is <i>definitely</i> not the case.
*/
public boolean mightContain(T instance) {
HashCodeSlicer slicer = HashCodes.slice(
hashFunction.newHasher().putObject(instance, funnel).hash(), hashBitsPerSlice);
for (int i = 0; i < numHashFunctions; i++) {
if (!bits.get(slicer.nextSlice())) {
return false;
}
}
return true;
}