@Test public void getEmptyValue() { assertNull(PrimitiveUtils.getEmptyValue(Void.TYPE)); assertEquals(false, PrimitiveUtils.getEmptyValue(Boolean.TYPE)); assertEquals((byte) 0, PrimitiveUtils.getEmptyValue(Byte.TYPE)); assertEquals((short) 0, PrimitiveUtils.getEmptyValue(Short.TYPE)); assertEquals((char) 0, PrimitiveUtils.getEmptyValue(Character.TYPE)); assertEquals(0, PrimitiveUtils.getEmptyValue(Integer.TYPE)); assertEquals(0L, PrimitiveUtils.getEmptyValue(Long.TYPE)); assertEquals((float) 0, PrimitiveUtils.getEmptyValue(Float.TYPE)); assertEquals((double) 0, PrimitiveUtils.getEmptyValue(Double.TYPE)); }
public static Object getEmptyValue(Class<?> type) { return primitiveTypes.get(type).emptyValue; }
PrimitiveUtils { public static Object getEmptyValue(Class<?> type) { return primitiveTypes.get(type).emptyValue; } }
PrimitiveUtils { public static Object getEmptyValue(Class<?> type) { return primitiveTypes.get(type).emptyValue; } private  PrimitiveUtils(); }
PrimitiveUtils { public static Object getEmptyValue(Class<?> type) { return primitiveTypes.get(type).emptyValue; } 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 Object getEmptyValue(Class<?> type) { return primitiveTypes.get(type).emptyValue; } private  PrimitiveUtils(); static Object getEmptyValue(Class<?> type); static Class<?> getWrapperType(Class<?> type); static boolean isPrimitiveWrapper(Class<?> type); static String getPrimitiveTypeNameFromWrapper(Class<?> type);  }