BloomFilterAlt implements IFilter<E>, Serializable { public int getK() { return k; } 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 testGetK() { System.out.println("testGetK"); BloomFilterAlt instance = null; instance = new BloomFilterAlt(2, 1); assertEquals(1, instance.getK()); instance = new BloomFilterAlt(3, 1); assertEquals(2, instance.getK()); instance = new BloomFilterAlt(4, 1); assertEquals(3, instance.getK()); instance = new BloomFilterAlt(5, 1); assertEquals(3, instance.getK()); instance = new BloomFilterAlt(6, 1); assertEquals(4, instance.getK()); instance = new BloomFilterAlt(7, 1); assertEquals(5, instance.getK()); instance = new BloomFilterAlt(8, 1); assertEquals(6, instance.getK()); instance = new BloomFilterAlt(9, 1); assertEquals(6, instance.getK()); instance = new BloomFilterAlt(10, 1); assertEquals(7, instance.getK()); instance = new BloomFilterAlt(11, 1); assertEquals(8, instance.getK()); instance = new BloomFilterAlt(12, 1); assertEquals(8, instance.getK()); }