Java BitSet clear(BitSet bitSet_)

Here you can find the source of clear(BitSet bitSet_)

Description

Clear a BitSet .

License

Open Source License

Declaration

public static void clear(BitSet bitSet_) 

Method Source Code

//package com.java2s;
/* Soot - a J*va Optimization Framework
 * Copyright (C) 2007 Manu Sridharan//w ww  .j a v a  2 s  . co  m
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

import java.util.BitSet;

public class Main {
    /** The empty {@link BitSet}. */
    public static final BitSet EMPTY_BITSET = new BitSet();

    /** Clear a {@link BitSet}. */
    public static void clear(BitSet bitSet_) {
        bitSet_.and(EMPTY_BITSET);
    }
}

Related

  1. bytes2bitset(byte[] bytes, byte nbyte, BitSet bits)
  2. bytesToBits(byte[] b, BitSet ba, int maxSize)
  3. cardinalityOf(BitSet bs)
  4. check(BitSet originalMessage, int messageLength, BitSet polynomial, int polynomialLength)
  5. checkValidCharOnly(BitSet validChars, String value)
  6. combine(int length, BitSet... bitsets)
  7. compare(BitSet a, BitSet b)
  8. copy(BitSet bs)
  9. copyBits(BitSet source, BitSet dest, int fromIndex)