Java BitSet bitsetCopy(BitSet src, int srcOffset, BitSet dest, int destOffset, int length)

Here you can find the source of bitsetCopy(BitSet src, int srcOffset, BitSet dest, int destOffset, int length)

Description

bitset Copy

License

LGPL

Declaration

public static void bitsetCopy(BitSet src, int srcOffset, BitSet dest, int destOffset, int length) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.BitSet;

public class Main {
    public static void bitsetCopy(BitSet src, int srcOffset, BitSet dest, int destOffset, int length) {
        for (int i = 0; i < length; i++) {
            dest.set(destOffset + i, src.get(srcOffset + i));
        }//from w w  w  .j ava2  s  .  c  om
    }
}

Related

  1. asArrayWith0s(int max, BitSet bits)
  2. binaryStringToBitSet(String stringRepresentation)
  3. binaryToGray(BitSet binary)
  4. bitSetTest(BitSet bitSet, int index)
  5. BitString2BitSet(String string)
  6. boolToBitSet(boolean[] bits, int offset, int length)
  7. byte2BitSet(BitSet bmap, byte[] b, int bitOffset)