Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getSimpleClassName (0.12 sec)

  1. 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)
  2. 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)
Back to top