code: public static boolean get(long[] bits, int pos) {
      int offset = pos >> LONG_SHIFT;
      if (offset >= bits.length)
        return false;
      return (bits[offset] & (1L << pos)) != 0;
    }
docs: Gets the bit for the given position.
  
  @param bits
  - bitset
  @param pos
  - position to retrieve.