code: public static Object[] boxAll(Class<?> type, Object src, int srcPos, int len) {
          switch (tId(type)) {
              case I_BOOLEAN:     return boxBooleans(src, srcPos, len);
              case I_BYTE:        return boxBytes(src, srcPos, len);
              case I_CHARACTER:   return boxCharacters(src, srcPos, len);
              case I_DOUBLE:      return boxDoubles(src, srcPos, len);
              case I_FLOAT:       return boxFloats(src, srcPos, len);
              case I_INTEGER:     return boxIntegers(src, srcPos, len);
              case I_LONG:        return boxLongs(src, srcPos, len);
              case I_SHORT:       return boxShorts(src, srcPos, len);
          }
          throw new IllegalArgumentException("No primitive/box: " + type);
      }
docs: Transforms a primitive array into an array of boxed values.
  @param type target type
  @param src source array
  @param srcPos start position
  @param len length
  @return array