Code example for BitSet

Methods: isEmpty

0
    public int size() { 
        return m_true.cardinality() + m_false.cardinality();
    } 
 
    public boolean isEmpty() { 
        return m_true.isEmpty() && m_false.isEmpty();
    } 
 
    public Comparator comparator() {
        return DefaultLiteralComparator.getInstance(); 
    } 
 
    public void clear() { 
        m_true.clear();
        m_false.clear();
    } 
 
    public boolean containsValue(int value) {
        return m_false.get(value) || m_true.get(value);
    }