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 use BigInteger instead of BitSet. BigInteger already has ShiftRight and ShiftLeft.
BigInteger
BitSet