Code example for BitSet

Methods: clone

0
            throw new IllegalArgumentException("groups must not be null");
         
        if( this.groups==null || 
            this.groups.equals(groups) )
        { 
            this.groups = (BitSet)groups.clone();
//            fireChangeEvent(); 
            notifyUser(); 
        } 
    } 
     
    public void set( int groupID, boolean value )
    { 
        if( groups.get(groupID) != value )
        { 
            groups.set(groupID,value);
//            fireChangeEvent(); 
            notifyUser(); 
        } 
    }