I am using a java.util.BitSet to store a dense vector of bits.
java.util.BitSet
I want to implement an operation that shifts the bits right by 1, analogous to >
>
You can look at the BitSet toLongArray and the valueOf(long[]). Basically get the long array, shift the longs and construct a new BitSet from the shifted array.
toLongArray
valueOf(long[])
long
BitSet