@Test public void isPrimitiveClass() throws Exception { assertTrue(classUtils.isPrimitiveClass(Boolean.class)); assertTrue(classUtils.isPrimitiveClass(Byte.class)); assertTrue(classUtils.isPrimitiveClass(Character.class)); assertTrue(classUtils.isPrimitiveClass(Short.class)); assertTrue(classUtils.isPrimitiveClass(Integer.class)); assertTrue(classUtils.isPrimitiveClass(Long.class)); assertTrue(classUtils.isPrimitiveClass(Double.class)); assertTrue(classUtils.isPrimitiveClass(Float.class)); assertTrue(classUtils.isPrimitiveClass(Void.class)); assertFalse(classUtils.isPrimitiveClass(String.class)); assertFalse(classUtils.isPrimitiveClass(BigInteger.class)); assertFalse(classUtils.isPrimitiveClass(this.getClass())); }
public boolean isPrimitiveClass(Class<?> type) { return type.isPrimitive() || WRAPPER_MAP.containsKey(type); }
ClassUtils { public boolean isPrimitiveClass(Class<?> type) { return type.isPrimitive() || WRAPPER_MAP.containsKey(type); } }
ClassUtils { public boolean isPrimitiveClass(Class<?> type) { return type.isPrimitive() || WRAPPER_MAP.containsKey(type); } ClassUtils(); }
ClassUtils { public boolean isPrimitiveClass(Class<?> type) { return type.isPrimitive() || WRAPPER_MAP.containsKey(type); } ClassUtils(); static boolean isTypeOf(Class<?> type,
                                   Object instance); static String getName(Class<?> type); static boolean isJavaRuntimeClassname(String fqcn); boolean isPrimitiveClass(Class<?> type); }
ClassUtils { public boolean isPrimitiveClass(Class<?> type) { return type.isPrimitive() || WRAPPER_MAP.containsKey(type); } ClassUtils(); static boolean isTypeOf(Class<?> type,
                                   Object instance); static String getName(Class<?> type); static boolean isJavaRuntimeClassname(String fqcn); boolean isPrimitiveClass(Class<?> type);  }