Package com.jackmeng.stl
Class stl_BloomFilterDS
java.lang.Object
com.jackmeng.stl.stl_BloomFilterDS
public class stl_BloomFilterDS
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description private java.util.BitSet
bitset
private stl_HashFunction[]
hashFxs
-
Constructor Summary
Constructors Constructor Description stl_BloomFilterDS(int size, int hashes)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
bitset
private final java.util.BitSet bitset -
hashFxs
-
-
Constructor Details
-
stl_BloomFilterDS
public stl_BloomFilterDS(int size, int hashes)
-
-
Method Details
-
add
public void add(java.lang.String value) -
contains
public boolean contains(java.lang.String value)
-