code: public static Object unboxAll(Class<?> type, Object src, int srcPos, int len) {
          switch (tId(type)) {
              case I_BOOLEAN:     return unboxBooleans(src, srcPos, len);
              case I_BYTE:        return unboxBytes(src, srcPos, len);
              case I_CHARACTER:   return unboxCharacters(src, srcPos, len);
              case I_DOUBLE:      return unboxDoubles(src, srcPos, len);
              case I_FLOAT:       return unboxFloats(src, srcPos, len);
              case I_INTEGER:     return unboxIntegers(src, srcPos, len);
              case I_LONG:        return unboxLongs(src, srcPos, len);
              case I_SHORT:       return unboxShorts(src, srcPos, len);
          }
          throw new IllegalArgumentException("No primitive/box: " + type);
      }
docs: Transforms any array into a primitive array.
  @param type target type
  @param src source array
  @param srcPos start position
  @param len length
  @return primitive array