Code example for BitSet

0
 * @author <a href="http://jheer.org">jeffrey heer</a> 
 */ 
public class BooleanIntBitSetMap implements BooleanIntSortedMap { 
 
    private BitSet m_true = new BitSet();
    private BitSet m_false = new BitSet();
     
    public BooleanIntBitSetMap() { 
    } 
     
    public boolean firstKey() { 
        return false; 
    } 
 
    public boolean lastKey() { 
        return true; 
    } 
 
    public boolean containsKey(boolean key) {
        BitSet set = key ? m_true : m_false;
Experience pair programming with AI  Get Codota for Java