Here you can find the source of shiftLeft(BitSet src, int offset)
public static BitSet shiftLeft(BitSet src, int offset)
//package com.java2s; //License from project: Apache License import java.util.BitSet; public class Main { public static BitSet shiftLeft(BitSet src, int offset) { if (offset < 0) return src; BitSet result = new BitSet(); int i;/*from w w w. j a va 2s . co m*/ for (i = 0; i < src.length(); i++) { if (src.get(i)) { result.set(i + offset, true); } } return result; } }