code: public boolean getBit(int index) throws IndexOutOfBoundsException {
          index = translateIndex(index);
          logger.debug("Get bit #{}", index);
          return ((data[byteIndex(index)]
                  & (0x01 << bitIndex(index))) != 0
          );
      }
docs: Returns the state of the bit at the given index of this
  <tt>BitVector</tt>.
  <p>
  
  @param index the index of the bit to be returned.
  
  @return true if the bit at the specified index is set,
  false otherwise.
  
  @throws IndexOutOfBoundsException if the index is out of bounds.