- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getSimpleClassName (0.14 sec)
-
src/test/java/org/codelibs/core/lang/ClassUtilTest.java
*/ @Test public void testGetSimpleClassName() { assertThat(ClassUtil.getSimpleClassName(int.class), is("int")); assertThat(ClassUtil.getSimpleClassName(String.class), is("java.lang.String")); assertThat(ClassUtil.getSimpleClassName(int[].class), is("int[]")); assertThat(ClassUtil.getSimpleClassName(String[][].class), is("java.lang.String[][]")); } /** * */
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
* * @param clazz * クラス。{@literal null}であってはいけません * @return クラス名 */ public static String getSimpleClassName(final Class<?> clazz) { assertArgumentNotNull("clazz", clazz); if (clazz.isArray()) { return getSimpleClassName(clazz.getComponentType()) + "[]"; } return clazz.getName(); } /** * クラス名をリソースパスとして表現します。
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0)