Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getShortClassName (0.17 sec)

  1. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

            assertThat(ClassUtil.getPackageName(getClass()), is("org.codelibs.core.lang"));
        }
    
        /**
         *
         */
        @Test
        public void testGetShortClassName() {
            assertThat(ClassUtil.getShortClassName(getClass().getName()), is("ClassUtilTest"));
        }
    
        /**
         *
         */
        @Test(expected = NoSuchConstructorRuntimeException.class)
        public void testGetConstructor() {
    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

        /**
         * FQCNからパッケージ名を除いた名前を返します。
         *
         * @param className
         *            クラス名。{@literal null}や空文字列であってはいけません
         * @return FQCNからパッケージ名を除いた名前
         */
        public static String getShortClassName(final String className) {
            assertArgumentNotEmpty("className", className);
    
            final int i = className.lastIndexOf('.');
            if (i > 0) {
                return className.substring(i + 1);
            }
    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