code: public static Object[] boxAll(Object src, int srcPos, int len) {
          switch (tId(src.getClass())) {
              case I_BOOLEAN:     return box((boolean[]) src, srcPos, len);
              case I_BYTE:        return box((byte[]) src, srcPos, len);
              case I_CHARACTER:   return box((char[]) src, srcPos, len);
              case I_DOUBLE:      return box((double[]) src, srcPos, len);
              case I_FLOAT:       return box((float[]) src, srcPos, len);
              case I_INTEGER:     return box((int[]) src, srcPos, len);
              case I_LONG:        return box((long[]) src, srcPos, len);
              case I_SHORT:       return box((short[]) src, srcPos, len);
          }
          throw new IllegalArgumentException("No primitive array: " + src);
      }
docs: Transforms a primitive array into an array of boxed values.
  @param src source array
  @param srcPos start position
  @param len length
  @return array