@Test public void isPrimitives() { Assert.assertTrue(ReflectUtils.isPrimitives(int.class)); Assert.assertTrue(ReflectUtils.isPrimitives(int[].class)); Assert.assertTrue(ReflectUtils.isPrimitives(Integer.class)); Assert.assertTrue(ReflectUtils.isPrimitives(Boolean.class)); Assert.assertTrue(ReflectUtils.isPrimitives(Character.class)); Assert.assertTrue(ReflectUtils.isPrimitives(String.class)); Assert.assertTrue(ReflectUtils.isPrimitives(Date.class)); Assert.assertTrue(ReflectUtils.isPrimitives(BigDecimal.class)); Assert.assertFalse(ReflectUtils.isPrimitives(List.class)); }
public static boolean isPrimitives(Class<?> clazz) { if (clazz.isArray()) { return isPrimitiveType(clazz.getComponentType()); } return isPrimitiveType(clazz); }
ReflectUtils { public static boolean isPrimitives(Class<?> clazz) { if (clazz.isArray()) { return isPrimitiveType(clazz.getComponentType()); } return isPrimitiveType(clazz); } }
ReflectUtils { public static boolean isPrimitives(Class<?> clazz) { if (clazz.isArray()) { return isPrimitiveType(clazz.getComponentType()); } return isPrimitiveType(clazz); }  }
ReflectUtils { public static boolean isPrimitives(Class<?> clazz) { if (clazz.isArray()) { return isPrimitiveType(clazz.getComponentType()); } return isPrimitiveType(clazz); }  static boolean isPrimitives(Class<?> clazz); static String getCodeBase(Class<?> cls); static Method getMethod(String clazzName, String methodName, String[] argsType); static Method getMethod(Class clazz, String methodName, Class... argsType); static Method getPropertySetterMethod(Class clazz, String property, Class propertyClazz); static Method getPropertyGetterMethod(Class clazz, String property); }
ReflectUtils { public static boolean isPrimitives(Class<?> clazz) { if (clazz.isArray()) { return isPrimitiveType(clazz.getComponentType()); } return isPrimitiveType(clazz); }  static boolean isPrimitives(Class<?> clazz); static String getCodeBase(Class<?> cls); static Method getMethod(String clazzName, String methodName, String[] argsType); static Method getMethod(Class clazz, String methodName, Class... argsType); static Method getPropertySetterMethod(Class clazz, String property, Class propertyClazz); static Method getPropertyGetterMethod(Class clazz, String property);  }