Java BitSet copyBitSetToBitSet(BitSet src, int srcPos, BitSet dest, int destPos, int length)

Here you can find the source of copyBitSetToBitSet(BitSet src, int srcPos, BitSet dest, int destPos, int length)

Description

copy Bit Set To Bit Set

License

Open Source License

Declaration

private static void copyBitSetToBitSet(BitSet src, int srcPos,
            BitSet dest, int destPos, int length) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.BitSet;

public class Main {
    private static void copyBitSetToBitSet(BitSet src, int srcPos,
            BitSet dest, int destPos, int length) {
        for (int i = srcPos, j = destPos; i < length; ++i, ++j) {
            dest.set(j, src.get(i));/*from  ww w .  j a va  2s  .  co m*/
        }
    }
}

Related

  1. clear(BitSet bitSet_)
  2. combine(int length, BitSet... bitsets)
  3. compare(BitSet a, BitSet b)
  4. copy(BitSet bs)
  5. copyBits(BitSet source, BitSet dest, int fromIndex)
  6. countLeadingSimilarBits(BitSet a, BitSet b)
  7. createBitSetFromBinaryString(String bitsAsBinaryString)
  8. createSimpleBitSet(Set setBits)
  9. decode(BitSet encoded, int encodedBitLength)