@Test public void getWrapperType() { assertEquals(Void.class, PrimitiveUtils.getWrapperType(Void.TYPE)); assertEquals(Boolean.class, PrimitiveUtils.getWrapperType(Boolean.TYPE)); assertEquals(Byte.class, PrimitiveUtils.getWrapperType(Byte.TYPE)); assertEquals(Short.class, PrimitiveUtils.getWrapperType(Short.TYPE)); assertEquals(Character.class, PrimitiveUtils.getWrapperType(Character.TYPE)); assertEquals(Integer.class, PrimitiveUtils.getWrapperType(Integer.TYPE)); assertEquals(Long.class, PrimitiveUtils.getWrapperType(Long.TYPE)); assertEquals(Float.class, PrimitiveUtils.getWrapperType(Float.TYPE)); assertEquals(Double.class, PrimitiveUtils.getWrapperType(Double.TYPE)); }
public static Class<?> getWrapperType(Class<?> type) { return primitiveTypes.get(type).wrapperType; }
PrimitiveUtils { public static Class<?> getWrapperType(Class<?> type) { return primitiveTypes.get(type).wrapperType; } }
PrimitiveUtils { public static Class<?> getWrapperType(Class<?> type) { return primitiveTypes.get(type).wrapperType; } private  PrimitiveUtils(); }
PrimitiveUtils { public static Class<?> getWrapperType(Class<?> type) { return primitiveTypes.get(type).wrapperType; } private  PrimitiveUtils(); static Object getEmptyValue(Class<?> type); static Class<?> getWrapperType(Class<?> type); static boolean isPrimitiveWrapper(Class<?> type); static String getPrimitiveTypeNameFromWrapper(Class<?> type); }
PrimitiveUtils { public static Class<?> getWrapperType(Class<?> type) { return primitiveTypes.get(type).wrapperType; } private  PrimitiveUtils(); static Object getEmptyValue(Class<?> type); static Class<?> getWrapperType(Class<?> type); static boolean isPrimitiveWrapper(Class<?> type); static String getPrimitiveTypeNameFromWrapper(Class<?> type);  }