Code example for BitSet

Methods: size

0
		long hash = hashOf(k, value);
		return (int) ((hash < 0 ? -hash : hash) % bits.size());
	} 
 
	public int capacity() { 
		return bits.size();
	} 
	 
	public int size() { 
		return count;
	} 
	 
	public double falsePositiveProbability() { 
		double k = 1;
		double n = size();
		double m = capacity();
		return Math.pow(1 - Math.pow(1.0 - 1.0/m, k*n), k);
	} 
}