Code example for BitSet

Methods: clear, or

0
     * The delta domain container is "frozen" (it can no longer accept new value removals) 
     * so that this set of values can be iterated as such² 
     */ 
    @Override 
    public void freeze() { 
        removedValuesToPropagate.clear();
        removedValuesToPropagate.or(removedValues);
    } 
 
    /** 
     * Update the delta domain 
     * 
     * @param value removed 
     */ 
    @Override 
    public void remove(final int value) {
        removedValues.set(value-offset);
    } 
 
    /** 
     * cleans the data structure implementing the delta domain