- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for convertPrimitiveWrapper (0.08 sec)
-
src/test/java/org/codelibs/core/convert/NumberConversionUtilTest.java
* @throws Exception */ public void testConvertNumber_primitiveWrapper() throws Exception { assertEquals(Byte.valueOf("1"), NumberConversionUtil.convertPrimitiveWrapper(byte.class, "1")); assertEquals(Byte.valueOf("0"), NumberConversionUtil.convertPrimitiveWrapper(byte.class, null)); } /** * @throws Exception */ public void testFindFractionDelimeter() throws Exception {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/NumberConversionUtil.java
* Primitive type * @param o * Source object * @return Object converted to the wrapper type corresponding to the specified primitive type */ public static Object convertPrimitiveWrapper(final Class<?> type, final Object o) { if (type == int.class) { final Integer i = IntegerConversionUtil.toInteger(o); if (i != null) { return i; }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 5.6K bytes - Viewed (0)