- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getPrimitiveClassIfWrapper (0.14 sec)
-
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
/** * */ @Test public void testGetPrimitiveClassIfWrapper() { assertThat(ClassUtil.getPrimitiveClassIfWrapper(Integer.class), is(sameClass(int.class))); assertThat(ClassUtil.getPrimitiveClassIfWrapper(String.class), is(sameClass(String.class))); assertThat(ClassUtil.getPrimitiveClassIfWrapper(Byte.class), is(sameClass(byte.class))); } /** * */ @Test
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
if (toClass == Object.class && !fromClass.isPrimitive()) { return true; } if (toClass.isPrimitive()) { fromClass = getPrimitiveClassIfWrapper(fromClass); } return toClass.isAssignableFrom(fromClass); } /** * ラッパークラスをプリミティブクラスに変換します。 * * @param clazz
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0)