test_class.file: beanmother-core/src/test/java/io/beanmother/core/util/PrimitiveTypeUtilsTest.java
test_class.identifier: PrimitiveTypeUtilsTest
test_case.body: @Test
      public void testConvertWrapperListToPrimitiveArray() {
          List<Integer> integerList = new ArrayList<>();
          integerList.add(1);
          Object reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(integerList, new int[]{}.getClass());
          assertTrue(reuslt.getClass().isArray());
          assertTrue(reuslt.getClass().getComponentType().isPrimitive());
  
          List<Long> longList = new ArrayList<>();
          longList.add(1l);
          reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(longList, new long[]{}.getClass());
          assertTrue(reuslt.getClass().isArray());
          assertTrue(reuslt.getClass().getComponentType().isPrimitive());
  
          List<Character> characterList = new ArrayList<>();
          characterList.add('a');
          reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(characterList, new char[]{}.getClass());
          assertTrue(reuslt.getClass().isArray());
          assertTrue(reuslt.getClass().getComponentType().isPrimitive());
  
          List<Boolean> booleanList = new ArrayList<>();
          booleanList.add(true);
          reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(booleanList, new boolean[]{}.getClass());
          assertTrue(reuslt.getClass().isArray());
          assertTrue(reuslt.getClass().getComponentType().isPrimitive());
  
          List<Float> floatList = new ArrayList<>();
          floatList.add(1.0f);
          reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(floatList, new float[]{}.getClass());
          assertTrue(reuslt.getClass().isArray());
          assertTrue(reuslt.getClass().getComponentType().isPrimitive());
  
          List<Double> doubleList = new ArrayList<>();
          doubleList.add(1.0d);
          reuslt = PrimitiveTypeUtils.toWrapperListToPrimitiveArray(doubleList, new double[]{}.getClass());
          assertTrue(reuslt.getClass().isArray());
          assertTrue(reuslt.getClass().getComponentType().isPrimitive());
      }
test_case.class_method_signature: PrimitiveTypeUtilsTest.testConvertWrapperListToPrimitiveArray()
test_case.full_signature: @Test public void testConvertWrapperListToPrimitiveArray()
test_case.identifier: testConvertWrapperListToPrimitiveArray
test_case.invocations: add toWrapperListToPrimitiveArray getClass assertTrue isArray getClass assertTrue isPrimitive getComponentType getClass add toWrapperListToPrimitiveArray getClass assertTrue isArray getClass assertTrue isPrimitive getComponentType getClass add toWrapperListToPrimitiveArray getClass assertTrue isArray getClass assertTrue isPrimitive getComponentType getClass add toWrapperListToPrimitiveArray getClass assertTrue isArray getClass assertTrue isPrimitive getComponentType getClass add toWrapperListToPrimitiveArray getClass assertTrue isArray getClass assertTrue isPrimitive getComponentType getClass add toWrapperListToPrimitiveArray getClass assertTrue isArray getClass assertTrue isPrimitive getComponentType getClass
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvertWrapperListToPrimitiveArray()
focal_class.file: beanmother-core/src/main/java/io/beanmother/core/util/PrimitiveTypeUtils.java
focal_class.identifier: PrimitiveTypeUtils
focal_class.class_method_signature: PrimitiveTypeUtils.toWrapper(final TypeToken<?> primitiveTypeToken)
focal_class.full_signature: public static Class<?> toWrapper(final TypeToken<?> primitiveTypeToken)
focal_class.identifier: toWrapper
focal_class.modifiers: public static
focal_class.parameters: (final TypeToken<?> primitiveTypeToken)
focal_class.return: Class<?>
focal_class.signature: Class<?> toWrapper(final TypeToken<?> primitiveTypeToken)
focal_class.class_method_signature: PrimitiveTypeUtils.toWrapperTypeToken(final TypeToken<?> primitiveTypeToken)
focal_class.full_signature: public static TypeToken<?> toWrapperTypeToken(final TypeToken<?> primitiveTypeToken)
focal_class.identifier: toWrapperTypeToken
focal_class.modifiers: public static
focal_class.parameters: (final TypeToken<?> primitiveTypeToken)
focal_class.return: TypeToken<?>
focal_class.signature: TypeToken<?> toWrapperTypeToken(final TypeToken<?> primitiveTypeToken)
focal_class.class_method_signature: PrimitiveTypeUtils.toWrapper(final Class<?> primitiveType)
focal_class.full_signature: public static Class<?> toWrapper(final Class<?> primitiveType)
focal_class.identifier: toWrapper
focal_class.modifiers: public static
focal_class.parameters: (final Class<?> primitiveType)
focal_class.return: Class<?>
focal_class.signature: Class<?> toWrapper(final Class<?> primitiveType)
focal_class.class_method_signature: PrimitiveTypeUtils.toWrapperListToPrimitiveArray(final List wrapperList, Class<?> primitiveType)
focal_class.full_signature: public static Object toWrapperListToPrimitiveArray(final List wrapperList, Class<?> primitiveType)
focal_class.identifier: toWrapperListToPrimitiveArray
focal_class.modifiers: public static
focal_class.parameters: (final List wrapperList, Class<?> primitiveType)
focal_class.return: Object
focal_class.signature: Object toWrapperListToPrimitiveArray(final List wrapperList, Class<?> primitiveType)
focal_method.body: public static Object toWrapperListToPrimitiveArray(final List wrapperList, Class<?> primitiveType) {
          if (primitiveType.isArray()) {
              primitiveType = primitiveType.getComponentType();
          }
  
          if (boolean.class.equals(primitiveType)) {
              return Booleans.toArray(wrapperList);
          } else if (float.class.equals(primitiveType)) {
              return Floats.toArray(wrapperList);
          } else if (long.class.equals(primitiveType)) {
              return Longs.toArray(wrapperList);
          } else if (int.class.equals(primitiveType)) {
              return Ints.toArray(wrapperList);
          } else if (short.class.equals(primitiveType)) {
              return Shorts.toArray(wrapperList);
          } else if (byte.class.equals(primitiveType)) {
              return Bytes.toArray(wrapperList);
          } else if (double.class.equals(primitiveType)) {
              return Doubles.toArray(wrapperList);
          } else if (char.class.equals(primitiveType)) {
              return Chars.toArray(wrapperList);
          } else {
              throw new IllegalArgumentException(primitiveType.getName() + " is not a supported primitive type");
          }
      }
focal_method.class_method_signature: PrimitiveTypeUtils.toWrapperListToPrimitiveArray(final List wrapperList, Class<?> primitiveType)
focal_method.full_signature: public static Object toWrapperListToPrimitiveArray(final List wrapperList, Class<?> primitiveType)
focal_method.identifier: toWrapperListToPrimitiveArray
focal_method.invocations: isArray getComponentType equals toArray equals toArray equals toArray equals toArray equals toArray equals toArray equals toArray equals toArray getName
focal_method.modifiers: public static
focal_method.parameters: (final List wrapperList, Class<?> primitiveType)
focal_method.return: Object
focal_method.signature: Object toWrapperListToPrimitiveArray(final List wrapperList, Class<?> primitiveType)