code: public static boolean[] getBits(final byte b) {
          final boolean[] res = new boolean[8];
          for (int i = 0; i < 8; i++) {
              res[7 - i] = (b & (1 << i)) != 0;
          }
          return res;
      }
docs: Gets bits as boolean array from a given byte.
  
  @param b byte.
  @return bits.