Code example for BitSet

Methods: isEmpty

0
     * 
     * @return true if release 
     */ 
    @Override 
    public boolean isReleased() { 
        return removedValues.isEmpty();
    } 
 
    /** 
     * after an iteration over the delta domain, the delta domain is reopened again. 
     * 
     * @return true iff the delta domain is reopened empty (no updates have been made to the domain 
     *         while it was frozen, false iff the delta domain is reopened with pending value removals (updates 
     *         were made to the domain, while the delta domain was frozen). 
     */ 
    @Override 
    public boolean release() { 
        removedValues.andNot(removedValuesToPropagate);
        final boolean empty = removedValues.isEmpty();
        removedValuesToPropagate.clear();
        return empty;