BloomFilterAlt implements IFilter<E>, Serializable { public void addAll(Collection<? extends E> c) { for (E element : c) add(element); } BloomFilterAlt(double c, int n, int k);  BloomFilterAlt(int bitSetSize, int expectedNumberOElements);  BloomFilterAlt(double falsePositiveProbability, int expectedNumberOfElements);  BloomFilterAlt(int bitSetSize, int expectedNumberOfFilterElements, int actualNumberOfFilterElements, BitSet filterData); static int createHash(String val, Charset charset); static int createHash(String val); static int createHash(byte[] data); static int[] createHashes(byte[] data, int hashes); @Override boolean equals(Object obj); @Override int hashCode(); double expectedFalsePositiveProbability(); double getFalsePositiveProbability(double numberOfElements); double getFalsePositiveProbability(); int getK(); void clear(); void add(E element); void add(byte[] bytes); double getPercentNonZero(); int getNumNonZero(); void addAll(Collection<? extends E> c); boolean membershipTest(E element); boolean contains(E element); boolean contains(byte[] bytes); boolean containsAll(Collection<? extends E> c); boolean getBit(int bit); void setBit(int bit, boolean value); BitSet getBitSet(); int size(); int count(); int getExpectedNumberOfElements(); double getExpectedBitsPerElement(); double getBitsPerElement();  }
@Test public void testAddAll() throws Exception { System.out.println("addAll"); List<String> v = new ArrayList<String>(); BloomFilterAlt instance = new BloomFilterAlt(1000, 100); for (int i = 0; i < 100; i++) v.add(UUID.randomUUID().toString()); instance.addAll(v); for (int i = 0; i < 100; i++) assert(instance.contains(v.get(i))); }