@Test public void testIsWrapper() { assertTrue(ClassUtil.isWrapper(Boolean.class)); assertTrue(ClassUtil.isWrapper(Integer.class)); assertTrue(ClassUtil.isWrapper(Byte.class)); assertTrue(ClassUtil.isWrapper(Character.class)); assertTrue(ClassUtil.isWrapper(Long.class)); assertTrue(ClassUtil.isWrapper(Float.class)); assertTrue(ClassUtil.isWrapper(Double.class)); assertTrue(ClassUtil.isWrapper(Short.class)); assertFalse(ClassUtil.isWrapper(String.class)); assertFalse(ClassUtil.isWrapper(Exception.class)); }
public static boolean isWrapper(Class<?> cls) { return ArrayUtil.in(cls, wrapperTypes); }
ClassUtil { public static boolean isWrapper(Class<?> cls) { return ArrayUtil.in(cls, wrapperTypes); } }
ClassUtil { public static boolean isWrapper(Class<?> cls) { return ArrayUtil.in(cls, wrapperTypes); } private  ClassUtil(); }
ClassUtil { public static boolean isWrapper(Class<?> cls) { return ArrayUtil.in(cls, wrapperTypes); } private  ClassUtil(); static boolean isA(Class<?> what, Class<?> interfaceOrSuper); static boolean isA(Object what, Class<?> interfaceOrSuper); static boolean isPrimitiveNumber(Object obj); static boolean isPrimitiveNumber(Class<?> c); static boolean isNumber(Object obj); static boolean isNumber(Class<?> c); static boolean isNumeric(Object obj); static boolean isWrapper(Class<?> cls); }
ClassUtil { public static boolean isWrapper(Class<?> cls) { return ArrayUtil.in(cls, wrapperTypes); } private  ClassUtil(); static boolean isA(Class<?> what, Class<?> interfaceOrSuper); static boolean isA(Object what, Class<?> interfaceOrSuper); static boolean isPrimitiveNumber(Object obj); static boolean isPrimitiveNumber(Class<?> c); static boolean isNumber(Object obj); static boolean isNumber(Class<?> c); static boolean isNumeric(Object obj); static boolean isWrapper(Class<?> cls);  }