Code example for BitSet

Methods: isEmpty

0
	public boolean contains(int i) {
		return i >= 0 && bitSet.get(i);
	} 
 
	public boolean isEmpty() { 
		return bitSet.isEmpty();
	} 
 
	public Iterator<Integer> iterator() {
		return new BitSetIterator(); 
	} 
 
	public boolean remove(Integer i) {
		return remove(i.intValue());
	} 
 
	public boolean remove(int i) {
		if (i < 0)
			return false; 
		boolean isPresent = bitSet.get(i);
		if (isPresent)